Skip to main content

Function: itemPath()

itemPath<T>(type, repo, item, embed?): string

Defined in: db/path.ts:30

Given the path parts, composes them into a GoatDB path.

Type Parameters

Type Parameter
T extends string

Parameters

ParameterTypeDescription
typeTType of the repository, e.g "sys" / "user" / "data".
repostringThe id of the repository.
itemstringThe key of the item within the repository.
embed?stringAn optional embedded item within the main item.

Returns

string

A full GoatDB path.