Protected graphProtected schemaProtected buildBuilds new DataLoader instance for 1:1 relationships of vertices.
The user context.
Clears per-request data loaders cache.
The user context.
Protected getReturns DataLoader instance.
The user context.
Class specific params required to identify the DataLoader instance.
Protected getReturns a map of DataLoaders for the given request.
The user context.
Retrieves an item using DataLoader.
The class specific response type or NULL.
The user context.
Class specific request parameters.
Optional transformParams: ConnectedVertexLoaderTransformParamsClass specific response item transformation params.
Protected serializeProduces string representation of data required to identify the DataLoader result row.
We're converting the object into array to:
Protected serializeProduces string representation of data required to identify the DataLoader instance.
Protected storageProtected transformThe return value transformation callback.
Called after the item was retrieved from DataLoader. Child classes may override this method to perform transformation of the data being returned.
The item being retrieved from DataLoader.
The user context.
The DataLoader identifier object which may contain properties used to initialize the Data Loader.
Class-specific transformation params.
Generated using TypeDoc
The 1:1 connection loader.
This class aggregates multiple 1:1 connection retrievals into a single Gremlin query which allows optimizing database queries.
It is possible to aggregate multiple 1:1 connection retrievals if the following conditions are met:
At the same, multiple originating vertices UUIDs and edge labels could be queried at the same time.
Below is a list of examples of how queries could be merged:
Content --hasApprover-> User,Content --hasOwner-> UserContent --belongsTo-> Organisation,User --reportsTo-> OrganisationContent --relatesTo-> User,Content --relatesTo-> ContentContent --relatesTo-> Content,Content <-relatesTo-- ContentMermaid
Retrieving 1:1 connections