Skip to content

Instantly share code, notes, and snippets.

@colinfwren
Created April 17, 2022 22:14
Show Gist options
  • Save colinfwren/32947b41a9e5a28c6009d35c197d5c7a to your computer and use it in GitHub Desktop.
Save colinfwren/32947b41a9e5a28c6009d35c197d5c7a to your computer and use it in GitHub Desktop.
Disconnect nodes
"""
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