graphql-engine/server/tests-py/queries/subscriptions/streaming/steps.yaml
Karthikeyan Chinnakonda 2325755954 server: streaming subscriptions schema generation and tests (incremental PR - 3)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4259
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Brandon Simmons <210815+jberryman@users.noreply.github.com>
Co-authored-by: paritosh-08 <85472423+paritosh-08@users.noreply.github.com>
GitOrigin-RevId: 4d1b4ec3c01f3a839f4392d3b77950fc3ab30236
2022-04-22 19:54:11 +00:00

92 lines
1.5 KiB
YAML

-
description: Insert mutation 1
name: insert_hge_tests_test_t2
query: |
mutation insert_articles($objects: [hge_tests_test_t2_insert_input!]! ) {
insert_hge_tests_test_t2(objects: $objects) {
returning {
c1
c2
}
}
}
variables: |
{
"objects": [
{
"c1": 1,
"c2": "test1"
}
]
}
response: |
{
"insert_hge_tests_test_t2": {
"returning": [
{
"c1": 1,
"c2": "test1"
}
]
}
}
stream_response: |
[
{
"c1": 1,
"c2": "test1"
}
]
-
description: Insert mutation 1
name: insert_hge_tests_test_t2
query: |
mutation insert_articles($objects: [hge_tests_test_t2_insert_input!]! ) {
insert_hge_tests_test_t2(objects: $objects) {
returning {
c1
c2
}
}
}
variables: |
{
"objects": [
{
"c1": 2,
"c2": "test2"
},
{
"c1": 3,
"c2": "test3"
}
]
}
response: |
{
"insert_hge_tests_test_t2": {
"returning": [
{
"c1": 2,
"c2": "test2"
},
{
"c1": 3,
"c2": "test3"
}
]
}
}
stream_response: |
[
{
"c1": 2,
"c2": "test2"
},
{
"c1": 3,
"c2": "test3"
}
]