Skip to content

Commit

Permalink
adding missing .query_error to err handling readme ex
Browse files Browse the repository at this point in the history
  • Loading branch information
ssagli committed Mar 19, 2024
1 parent 46d3b22 commit b48f423
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 b48f423

Please sign in to comment.