Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-05-2022 08:52 AM
Hi,
I try to find the graphQl mutation for delete only one relationship between two nodes.
I found the doc for nodes but not for relations : https://neo4j.com/docs/graphql-manual/current/mutations/delete/#_single_delete
I defined relations in schema with interfaces like this example :
interface RelTook @relationshipProperties {
_id: ID! @id
createdAt: DateTime! @timestamp(operations: [CREATE])
}
And finally I don't get it in schema explorer for writing the "delete" mutation.
Thanks for your help !
01-05-2023 01:31 PM
You can delete relationships using an update mutation and the disconnect argument: https://neo4j.com/docs/graphql-manual/current/mutations/update/
See the full example here: https://neo4j.com/docs/graphql-manual/current/guides/v2-migration/mutations/#_disconnect
All the sessions of the conference are now available online