graphql-engine/server/tests-py/queries/actions/sync/create_users_fail.yaml
Rakesh Emmadi 996ce928d4
auto-include __typename field in custom types' objects (fix #4063) (#4074)
* include `__typename` field in custom types' objects, fix #4063

Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
2020-03-11 17:09:00 +05:30

19 lines
428 B
YAML

description: Run create_users sync action mutation with invalid email
url: /v1/graphql
status: 200
query:
query: |
mutation {
create_users(users: [{email: "blake@hasura.io", name: "Blake"}, {email: "random-email", name: "Elsa"}]){
id
__typename
}
}
response:
errors:
- extensions:
path: $
code: invalid-email
message: 'Email address is not valid: random-email'