mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 18:42:30 +03:00
996ce928d4
* include `__typename` field in custom types' objects, fix #4063 Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
36 lines
717 B
YAML
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
|