graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Auto incrementing IDs

Open tbwiss opened this issue 2 years ago • 2 comments

In a setting with a version we would like a counter which is automatically updated for each new node.

This could potentially be included in the @id directive.

tbwiss avatar Sep 15 '22 12:09 tbwiss

Isn't that already possible with the callback directive?

AccsoSG avatar Sep 21 '22 13:09 AccsoSG

Isn't that already possible with the callback directive?

The @callback directive has no knowledge of the current state of the database unless queried. However, this might fit into a "Cypher post hook" which we have yet to implement.

darrellwarde avatar Sep 21 '22 16:09 darrellwarde