cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

How delete only one relationship with GraphQL Library

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 !

1 REPLY 1

William_Lyon
Graph Fellow

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