GraphHandler constructor
The schema manager
The runtime config
Private _handleThe context of the user who the call is being made on behalf of.
Promise
Handle a request to connect a (probably newly created) vertex to additional existing vertices. This is used for example when creating an entity with required connections.
Optional validatePrimary: booleanIf this is set to false, access control validation is skipped for the primary vertex (the one to which the new connections are to be added). This may be useful if access to create connections is dependent on rules that expect the connections to already exist - in other words, when the primary vertex has just been created. The other end of the connection is still access-checked as normal.
Optional validate: booleanOptional extraInfo: { Optional orderByProperty: stringOptional orderBy: FilterOrderDirectionMethods which need to be implemented
Optional validate: booleanOptional validate: booleanFor retrieving data use SingleConnectedVertexLoader,
ZeroToManyRelationVertexLoader and ZeroToManyRelationCountLoader
services. For GraphQL connection field resolvers, use
ConnectionsManager.
Optional inverse: booleanOptional runHooks: booleanOptional out: booleanOptional properties: {}Optional mapElements: booleanThis function is used to retrieve a list Vertices by their uuids.
The context of the user who the call is being made on behalf of.
The uuids of the entities
Optional type: stringThe type of the entity being requested (optional)
Optional fetchFunction: ((...args: any[]) => Promise<any>)Rest ...args: any[]This function is used to get the destination vertex that the source vertex is pointing to via the defined edge/relationship.
Returns the vertex conencted by the source vertex and edge.
The label of the vertex.
The label of the edge.
This function is used to get the destination vertex that the source vertex is pointing FROM via the defined edge/relationship, this is the inverse to getDestinationVertexEdge
Returns the vertex conencted by the source vertex and edge.
The label of the source vertex.
The label of the destination vertex.
The label of the edge.
Optional connection: booleanThis a boolean 1:1 is flase 0:n true
This function is used to get the destination vertex that the source vertex is pointing FROM via the defined edge/relationship, this is used when getting a connection 0:N rather than a 1:1
Returns the vertex conencted by the source vertex and edge.
The label of the vertex.
The label of the edge.
Optional useReaderPool: booleanUse ZeroToManyRelationVertexLoader service
Optional orderByProperty: stringOptional orderBy: FilterOrderDirectionOptional edgeProperties: { Use ZeroToManyRelationVertexLoader service
Optional orderByProperty: stringOptional orderBy: FilterOrderDirectionOptional validate: booleanOptional validate: booleanGenerated using TypeDoc
The GraphHandler Class implements the Handler Class to provide the Graph backend data source handler. The graph connector is responsible for any reading or writing of data to the graph db.