Guides
Dash CoreDash PlatformDash.orgDash User DocsLog In

🚧

New site!

All content has been migrated to docs.dash.org. You will be automatically redirected momentarily.

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);