More in Learn

Fetching All Items

Items include all the data you have in your catalogue, including documents, folders, and products. In this section, we’ll take a look at how to fetch items collectively.

In order to perform these operations, ensure that you have the proper authentication (if necessary) and user permissions.

Querying Items

There are two ways to query items contained within a tenant. You can do so by using the children field or the subtree field. Both return the same results, but the latter allows you to add pagination.

Using Children

To fetch all items using the children field, you can do the following:

Circle loading spinnerImage of a partial circle indicating &qoute;loading&qoute;.Fetching snippet...

The query above gets the name and type of all the children. You can ask for any of the query fields to get more information.

Using Subtree

The subtree field can be used to fetch all the items in the following manner:

Circle loading spinnerImage of a partial circle indicating &qoute;loading&qoute;.Fetching snippet...

Using subtree is recommended for when you are adding pagination. Otherwise, the children field would fulfill the purpose just fine.

People showing thumbs up

Need further help?

Join and ask our
slack community.

Join our slack community