🗂️Get Collections

Use this method to get metadata of multiple collections at the same time.

Usage in your script

const response = await altura.getCollections();

// customize options
const response = await altura.getCollections({
  perPage: 20,
  page: 1,
  sortBy: 'name',
  sortDir: 'asc'
});

// filter documents by any properties
const response = await altura.getCollections(
  {}, // Default pagination
  {
    isVerified: true
  } // fetching verified collections only
);

const collections = response.collections;
const collectionCount = response.count;

Parameters

Last updated