import { TreeRepository } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";
Repository with additional functions to work with trees.
Methods
Moves entity to the children of then given entity.
move(entity: Entity, to: Entity): Promise<void> {
return Promise.resolve();
}
Gets number of ancestors of the entity.
Gets number of descendants of the entity.
Creates a query builder used to get ancestors of the entities in the tree.
Creates a query builder used to get descendants of the entities in a tree.
Gets all parents (ancestors) of the given entity. Returns them all in a flat array.
Gets all parents (ancestors) of the given entity. Returns them in a tree - nested into each other.
Gets all children (descendants) of the given entity. Returns them all in a flat array.
Gets all children (descendants) of the given entity. Returns them in a tree - nested into each other.
Methods
Moves entity to the children of then given entity.
move(entity: Entity, to: Entity): Promise<void> {
return Promise.resolve();
}
Gets number of ancestors of the entity.
Gets number of descendants of the entity.
Creates a query builder used to get ancestors of the entities in the tree.
Creates a query builder used to get descendants of the entities in a tree.
Gets all parents (ancestors) of the given entity. Returns them all in a flat array.
Gets all parents (ancestors) of the given entity. Returns them in a tree - nested into each other.
Gets all children (descendants) of the given entity. Returns them all in a flat array.
Gets all children (descendants) of the given entity. Returns them in a tree - nested into each other.