The context of the user on whose behalf the call is being made.
Used by traits for non user accessible entities
The label of the edge that is to be created
The initial data that to be added to the edge
TRUE to make edge unique
Optional validate: booleanUsed by traits for non user accessible entities. Default is true.
Optional executeHooks: booleanRuns ACL for the specific action.
the context of the user who the call is being made on behalf of.
entiti label
entity ID
policy action
Optional throwError: booleanthrow an error on forbidden
This function is used to create a vertex
TODO: Remove data argument, use traitData.args instead since it's the same.
The context of the user on whose behalf the call is being made.
The type of vertex that is to be created
The initial data that to be added to the vertex
The connections that should be added to the vertex once it has been created.
Optional validate: booleanUsed by traits for non user accessible entities. Default is true.
Optional traitData: TraitDataObject<unknown, Record<string, any>, Promise<any>>Used by traits for non user accessible entities TODO document traitData object.
Optional executeHooksArg: booleanThis function is used to delete a Vertex by ID from the cache.
The context of the user
The id of the item to delete
Deletes an edge.
The context of the user on whose behalf the call is being made.
Used by traits for non user accessible entities
The ID of the edge that is to be deleted
Optional validate: booleanUsed by traits for non user accessible entities. Default is true.
Optional executeHooks: booleanThis function is used to delete an entity specified by a uuid.
The context of the user on whose behalf the call is being made.
The type of entity to be deleted.
The uuid of the entity.
Optional validate: booleanUsed by traits for non user accessible entities. Default is true.
Retrieves edge connection response.
NOTE: This method would also execute any postView hooks associated
with retrieved entities. To get a raw result, call
edgeConnection instead.
For retrieving data use SingleConnectedVertexLoader,
ZeroToManyRelationVertexLoader and ZeroToManyRelationCountLoader
services. For GraphQL connection field resolvers, use
ConnectionsManager.
Optional inverse: booleanReturns edge between source and dest vertices.
edge
TODO: Document me.
Optional out: booleanOptional properties: objectOptional mapElements: booleanReturns the list of existing edges matching criteria.
The filtered list of edges.
Finds a real entity type of the entity.
Returns the same string as passed in for vertex types, tries to determine a real entity type of vertex if type is a union.
Real entity type
the context of the user who the call is being made on behalf of.
vertex schema type name; could be either real entity type name or union
entity ID
This function is used to retrieve a Vertex by its uuid.
The context of the user on whose behalf the call is being made.
The uuid of the entity
Optional includeLabel: booleaninclude the label as part of the response. Default is false.
Optional type: stringThe type of the entity being requested (optional)
Optional validate: booleanUsed by traits for non user accessible entities. Default is true.
Optional clearCacheFirst: booleanClear cache before running the function (optional). Default is false.
Constructs new TraitGraphQuery object.
The context of the user on whose behalf the call is being made.
Optional useReaderPool: booleanWhether to use the Gremlin connections pool.
Wrapper for GraphHandler.listEdgesByTypeFromVertex().
Use ZeroToManyRelationVertexLoader service
The list of edges.
The user context
The source UUID of the entity
The source type of the entity
The type of the connecting edge
Optional offset: stringThe offset defaults to Constants.DATE_EPOCH.
Optional limit: null | numberThe limit defaults to 10
Optional destinationType: stringThe type of the destination vertex
Optional bypassAccess: booleanUsed by trait to bypass access default false.
Optional filter: LuceneQueryFieldExpression | LuceneQueryNodeExpression<true>The evaluated lucene query
Optional orderByProperty: stringUsed to define what to filter by ie created /updated date, default is created date.
Optional orderBy: FilterOrderDirectionUsed to define what order ie desc or asc
Wrapper for GraphHandler.listInverseEdgesByTypeFromVertex().
Use ZeroToManyRelationVertexLoader service
The list of edges.
The user context
The source UUID of the entity
The source type of the entity
The type of the connecting edge
Optional offset: stringThe offset defaults to Constants.DATE_EPOCH.
Optional limit: null | numberThe limit defaults to 10
Optional destinationType: stringThe type of the destination vertex
Optional filter: LuceneQueryFieldExpression | LuceneQueryNodeExpression<true>The evaluated lucene query
Optional orderByProperty: stringUsed to define what to filter by ie created /updated date, default is created date.
Optional orderBy: FilterOrderDirectionUsed to define what order ie desc or asc
This function is used to get a list of Vertices of a specified type.
The context of the user on whose behalf the call is being made.
The entity type of the requested items
Optional after: stringThe offset to return from
Optional limit: numberThe maximum number of items to return.
Optional filter: stringThe lucene search string
Optional filterOrder: stringThe property and order to sort by
Optional validate: booleanUsed by traits for non user accessible entities. Default is true.
Optional query: CSQLThis function is used to update an existing entity.
The context of the user on whose behalf the call is being made.
The type of entity to be updated.
The data to update.
The connections that should be added to the vertex once it's been updated.
The connections that should be removed from the vertex once it's been updated.
Optional validate: booleanUsed by traits for non user accessible entities. Default is true.
Generated using TypeDoc
Creates an edge.