Guides
Dash CoreDash PlatformDash.orgDash User DocsLog In
These docs are for v0.24.0. Click to read the latest docs for v0.25-redirect.

Usage: client.platform.documents.get(typeLocator, opts)
Description: This method will allow you to fetch back documents matching the provided parameters.

Parameters:

parameterstyperequiredDescription
typeLocatorstringyesField of a specific application, under the form appName.fieldName
optsobjectno (default: {})Query options of the request

Queries options:

parameterstyperequiredDescription
wherearraynoMongo-like where query
orderByarraynoMongo-like orderBy query
limitintegernohow many objects to fetch
startAtintegernonumber of objects to skip
startAfterintegernoexclusive skip

Learn more about query syntax.

Example:

   const queryOpts = {
         where: [
             ['normalizedLabel', '==', 'alice'],
             ['normalizedParentDomainName', '==', 'dash'],
         ],
     };
  await client.platform.documents.get('dpns.domain', queryOpts);