neo4j-graphql / neo4j-graphql-java

Neo4j Labs Project: Pure JVM translation for GraphQL queries and mutations to Neo4j's Cypher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adjust generated delete method

Andy2003 opened this issue · comments

The delete method for Nodes will have the following schema:

type Mutation {
  deleteMovies(where: MovieWhere): DeleteInfo!
}

type DeleteInfo {
  nodesDeleted: Int!
  relationshipsDeleted: Int!
}

Changes to the current implementation:

  1. Return value is no longer the Deleted Entity
  2. Multiple nodes can be deleted via the where-filter