Dominevo
ReferenceHTTP API

dataStoreProvider

The dataStoreProvider router: 18 methods of the data-store-provider capability, with tier, scope, input and output.

Capability data-store-provider · scope system · mode collection · source packages/types/src/capabilities/data-store-provider.cap.ts:77.

Every method is called at /trpc/dataStoreProvider.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
getEngineInfoqueryadminadmin onlyno
getqueryadminadmin onlyno
setmutationadminadmin onlyno
queryqueryadminadmin onlyno
insertmutationadminadmin onlyno
upsertmutationadminadmin onlyno
upsertManymutationadminadmin onlyno
insertManymutationadminadmin onlyno
transactmutationadminadmin onlyno
updatemutationadminadmin onlyno
deletemutationadminadmin onlyno
deleteWheremutationadminadmin onlyno
updateWheremutationadminadmin onlyno
countqueryadminadmin onlyno
aggregatequeryadminadmin onlyno
histogramqueryadminadmin onlyno
isEmptyqueryadminadmin onlyno
declareCollectionmutationadminadmin onlyno

dataStoreProvider.getEngineInfo

  • Kind: query — GET /trpc/dataStoreProvider.getEngineInfo
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.getEngineInfo on your hub

Input

void

Output

DataStoreEngineInfoSchema

Shapes: DataStoreEngineInfoSchema

dataStoreProvider.get

  • Kind: query — GET /trpc/dataStoreProvider.get
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.get on your hub

Input

{ namespace?: string; collection: string; key: string }

Output

unknown

dataStoreProvider.set

  • Kind: mutation — POST /trpc/dataStoreProvider.set
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.set on your hub

Input

{ namespace?: string; collection: string; key: string; value: unknown }

Output

void

dataStoreProvider.query

  • Kind: query — GET /trpc/dataStoreProvider.query
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.query on your hub

Input

{ namespace?: string; collection: string; filter?: QueryFilterSchema; columns?: string[] }

Output

SettingsRecordSchema[]

Shapes: QueryFilterSchema · SettingsRecordSchema

dataStoreProvider.insert

  • Kind: mutation — POST /trpc/dataStoreProvider.insert
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.insert on your hub

Input

{ namespace?: string; collection: string; record: { id?: string; data: Record<string, unknown> } }

Output

{ id: string | number }

dataStoreProvider.upsert

  • Kind: mutation — POST /trpc/dataStoreProvider.upsert
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.upsert on your hub

Input

{ namespace?: string; collection: string; conflict: string[]; record: BulkRecordSchema }

Output

{ id: string | number }

Shapes: BulkRecordSchema

dataStoreProvider.upsertMany

  • Kind: mutation — POST /trpc/dataStoreProvider.upsertMany
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.upsertMany on your hub

Input

{ namespace?: string; collection: string; conflict: string[]; records: BulkRecordSchema[] }

Output

{ upserted: number }

Shapes: BulkRecordSchema

dataStoreProvider.insertMany

  • Kind: mutation — POST /trpc/dataStoreProvider.insertMany
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.insertMany on your hub

Input

{ namespace?: string; collection: string; records: BulkRecordSchema[] }

Output

{ inserted: number }

Shapes: BulkRecordSchema

dataStoreProvider.transact

  • Kind: mutation — POST /trpc/dataStoreProvider.transact
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.transact on your hub

Input

{ namespace?: string; guard?: { collection: string; key: string; column: string; equals: unknown }; ops: ({ op: "deleteWhere"; collection: string; filter: MutationFilterSchema } | { op: "insertMany"; collection: string; records: BulkRecordSchema[] } | { op: "update"; collection: string; id: string; data: Record<string, unknown> } | { op: "upsertMany"; collection: string; conflict: string[]; records: BulkRecordSchema[] })[] }

Output

{ applied: boolean; current?: unknown }

Shapes: MutationFilterSchema · BulkRecordSchema

dataStoreProvider.update

  • Kind: mutation — POST /trpc/dataStoreProvider.update
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.update on your hub

Input

{ namespace?: string; collection: string; id: string; data: Record<string, unknown> }

Output

void

dataStoreProvider.delete

  • Kind: mutation — POST /trpc/dataStoreProvider.delete
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.delete on your hub

Input

{ namespace?: string; collection: string; key: string }

Output

void

dataStoreProvider.deleteWhere

  • Kind: mutation — POST /trpc/dataStoreProvider.deleteWhere
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.deleteWhere on your hub

Input

{ namespace?: string; collection: string; filter: MutationFilterSchema }

Output

{ deleted: number }

Shapes: MutationFilterSchema

dataStoreProvider.updateWhere

  • Kind: mutation — POST /trpc/dataStoreProvider.updateWhere
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.updateWhere on your hub

Input

{ namespace?: string; collection: string; filter: MutationFilterSchema; data: Record<string, unknown> }

Output

{ updated: number }

Shapes: MutationFilterSchema

dataStoreProvider.count

  • Kind: query — GET /trpc/dataStoreProvider.count
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.count on your hub

Input

{ namespace?: string; collection: string; filter?: QueryFilterSchema }

Output

number

Shapes: QueryFilterSchema

dataStoreProvider.aggregate

  • Kind: query — GET /trpc/dataStoreProvider.aggregate
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.aggregate on your hub

Input

{ namespace?: string; collection: string; fields: ({ as: string; field: string; op: "sum" | "min" | "max" })[]; filter?: QueryFilterSchema }

Output

{ count: number; values: Record<string, number | null> }

Shapes: QueryFilterSchema

dataStoreProvider.histogram

  • Kind: query — GET /trpc/dataStoreProvider.histogram
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.histogram on your hub

Input

{ namespace?: string; collection: string; field: string; bucketSize: number; origin: number; filter?: QueryFilterSchema }

Output

({ bucket: number; count: number })[]

Shapes: QueryFilterSchema

dataStoreProvider.isEmpty

  • Kind: query — GET /trpc/dataStoreProvider.isEmpty
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.isEmpty on your hub

Input

{ namespace?: string; collection: string }

Output

boolean

dataStoreProvider.declareCollection

  • Kind: mutation — POST /trpc/dataStoreProvider.declareCollection
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=dataStoreProvider.declareCollection on your hub

Input

DeclareCollectionInputSchema

Output

void

Shapes: DeclareCollectionInputSchema