Created
April 17, 2022 22:14
-
-
Save colinfwren/32947b41a9e5a28c6009d35c197d5c7a to your computer and use it in GitHub Desktop.
Disconnect nodes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Arguments look like | |
{ | |
"where": { | |
"id": "ID of the node to update" | |
}, | |
"update": { | |
"userStories": [ | |
{ | |
"disconnect": [ | |
{ | |
"where": { | |
"id": "ID of the node to connect" | |
} | |
} | |
] | |
} | |
] | |
} | |
} | |
""" | |
mutation Mutation($where: TestWhere, $update: TestUpdateInput) { | |
updateTests(where: $where, update: $update) { | |
tests { | |
name | |
userStories { | |
name | |
} | |
} | |
} | |
} | |
""" | |
Response looks like | |
{ | |
data: { | |
updateTests: [ | |
{ | |
name: 'Updated test', | |
userStories: [] | |
} | |
] | |
} | |
} | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment