Protected _schemaProtected _singleProtected _zeroProtected _zeroProtected addRegisters direct connection resolver for a given vertex type and edge definition.
The vertex type name.
The edge definition.
GraphQL resolvers object.
Protected addRegisters inverse connection resolver for a given vertex type and edge definition.
The edge definition.
The vertex type name.
GraphQL resolvers object.
Protected getReturns resolver for virtual connection type.
Protected getReturns resolver for edges field of zero to many connection.
Uses ZeroToManyRelationVertexLoader data loader; may (and should) reuse the same Gremlin query as getPageInfoResolver.
Protected getReturns a one to one connection query resolver callback for a given entity type.
The edge definition.
Whether to query inverse connections.
Protected getReturns resolver for pageInfo field of zero to many connection.
Uses ZeroToManyRelationVertexLoader data loader; may (and should) reuse the same Gremlin query as getEdgesResolver.
Protected getReturns resolver for totalCount field of zero to many connection.
Uses ZeroToManyRelationCountLoader data loader.
Protected getReturns a virtual connection query resolver callback for a given entity type.
Unlike resolver returned by getOneToOneConnectionFieldResolver, the resolver here doesn't make any queries or return any data. Instead, it returns an object containing all info required by child resolvers.
This approach is more efficient since it allow running only specific
queries required for fetching data; e.g. it won't execute totalCount
queries if it's not necessary.
An object containing parameters used by child resolvers.
Protected registerRegisters direct zeroToMany connection resolver for a given vertex type and edge definition.
The vertex type name.
The edge definition.
GraphQL resolvers object.
Protected registerRegisters direct zeroToOne connection resolver for a given vertex type and edge definition.
The vertex type name.
The edge definition.
GraphQL resolvers object.
Protected registerRegisters inverse one to one connection resolver for a given vertex type and edge definition.
The vertex type name.
The edge definition.
GraphQL resolvers object.
Protected registerRegisters inverse zero to many connection resolver for a given vertex type and edge definition.
The vertex type name.
The edge definition.
GraphQL resolvers object.
Generated using TypeDoc
The connections fields resolver class.
Handles one to one and zero to many connections, both direct and inverse.
One to one connection handling is pretty much straightforward. The SingleConnectedVertexLoader service is used to merge multiple graph database queries.
For zero to many connections an interim VirtualConnection object is introduced. No Gremlin queries are executed for retrieving the virtual connection object, and it does not contain any data; instead, it simply proxies all arguments required for retrieving data by child
totalCount,pageInfoandedgesfields resolvers which are only executed if the client have queried the corresponding fields.Mermaid
One to one connection handling
Mermaid
Zero to many connection handling