Skip to content

Commit

Permalink
Merge pull request #489 from ssagli/readme-errorhandle
Browse files Browse the repository at this point in the history
adding missing .query_error to err handling readme ex
  • Loading branch information
avermeil authored Sep 9, 2024
2 parents ae00f98 + b48f423 commit 81b9098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ try {
// Get the first one and explicitly check for a certain error type
const [firstError] = err.errors;
if (
firstError.error_code ===
firstError.error_code.query_error ===
errors.QueryErrorEnum.QueryError.UNRECOGNIZED_FIELD
) {
console.log(
Expand Down

0 comments on commit 81b9098

Please sign in to comment.