INTERFACE

NodeVersion

An interface indicating that the given type is versioned, and providing an opaque version identifier.

Optimistic locking on mutations on the given type can be performed by providing the nodeVersion field in the input type.

If the nodeVersion field passed in the mutation input does not match the current node's nodeVersion field then the mutation should be rejected, since there has been a version change on the server since the last time that the mutation client read the node.

Note that implementing NodeVersion does not require the Node interface to be implemented.

link GraphQL Schema definition

  • interface NodeVersion {
  • # Opaque version string for this graph node instance
  • nodeVersion: ID!
  • }

link Require by