Guides
Dash CoreDash PlatformDash.orgDash User DocsLog In

getDocuments

🚧

New site!

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

Usage: async client.platform.getDocuments(contractId, type, options)
Description: Fetch Documents from Drive

Parameters:

parameterstyperequiredDescription
contractIdStringyesA valid registered contractId
typeStringyesDAP object type to fetch (e.g: 'preorder' in DPNS)
options.whereObjectyesMongo-like query
options.orderByObjectyesMongo-like sort field
options.limitNumberyesLimit the number of object to fetch
options.startAtNumberyesnumber of objects to skip
options.startAfterNumberyesexclusive skip

Returns : Promise<Buffer[]>