Configuring cldAssetsLoader
cldAssetLoader provides a wide range of options to customize your Collectoin query.
Basic Options
Option | Type | Default | Example | |
---|---|---|---|---|
context | boolean | false | true | More Info |
deliveryType | string | upload | upload | More Info |
fields | Array<string> | - | ['width', 'height', 'context'] | More Info |
folder | string | - | samples/food | More Info |
limit | number | 10 | 45 | More Info |
metadata | boolean | false | true | More Info |
moderation | boolean | false | true | More Info |
resourceType | string | image | 45 | More Info |
tags | boolean | true | true | More Info |
type | number | list | search |
context
Whether to include Contextual Metadata (context
) in the resource object.
Examples
Learn more about Contextual Metadata in the Cloudinary docs.
deliveryType
The delivery type of the assets you want to query.
Examples
Learn more about Delivery Types on the Cloudinary docs.
fields
The asset fields to include in the resource object response.
Examples
folder
The folder the assets should be queried from.
Examples
limit
The maximum amount of results to query.
Examples
metadata
Whether to include Structured Metadata (metadata
) in the resource object.
Examples
Learn more about Structured Metadata in the Cloudinary docs.
moderation
Whether to include the moderation status (moderation
) in the resource object.
Examples
Learn more about Moderation on Upload in the Cloudinary docs.
resourceType
The type of the assets you want to query.
Examples
Learn more about Asset Types on the Cloudinary docs.
tags
Whether to include the asset’s tags (tags
) in the resource object.
Examples
Learn more about Tags in the Cloudinary docs.
type
The type of query to make for assets, including list or search.
This primarily differs in how the requests are made, using the Admin API or the Search API.
Examples