graphql-engine/server/tests-py/queries/actions/sync/create_users_success.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

36 lines
717 B
YAML

description: Run create_users sync action mutation with valid emails
url: /v1/graphql
status: 200
query:
query: |
mutation {
create_users(users: [{email: "blake@hasura.io", name: "Blake"}, {email: "elsa@hasura.io", name: "Elsa"}]){
id
__typename
user {
__typename
name
email
is_admin
}
}
}
response:
data:
create_users:
- id: 1
__typename: UserId
user:
__typename: user
name: Blake
email: blake@hasura.io
is_admin: false
- id: 2
__typename: UserId
user:
__typename: user
name: Elsa
email: elsa@hasura.io
is_admin: false