feat(graphql): add error codes to graphql errors
This commit is contained in:
parent
2a09f1d505
commit
fbae6d941d
5 changed files with 37 additions and 11 deletions
|
@ -684,7 +684,7 @@ describe API::V2::GraphqlController do
|
|||
end
|
||||
|
||||
it "should return an error" do
|
||||
expect(gql_errors).to eq([{ message: "Cannot return null for non-nullable field PersonneMorale.siegeSocial" }])
|
||||
expect(gql_errors).to eq([{ message: "Cannot return null for non-nullable field PersonneMorale.siegeSocial", extensions: { code: "invalid_null" } }])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue