Query

View as Markdown

Query

Find

The Find all object call fetches the list of all objects owned by a particular user account.

using Contentstack.Management.Core;

using Contentstack.Management.Core.Models;


ContentstackClient client = new ContentstackClient("<AUTHTOKEN>");

ContentstackResponse contentstackResponse = client.Stack().Query().Limit(5).Find();

FindAsync

The Find all object call fetches the list of all objects owned by a particular user account.

using Contentstack.Management.Core;

using Contentstack.Management.Core.Models;


ContentstackClient client = new ContentstackClient("<AUTHTOKEN>");

ContentstackResponse contentstackResponse = await client.Stack().Query().Limit(5).FindAsync();

IncludeCount

The ‘include_count’ parameter returns the total number of object related to the user.

using Contentstack.Management.Core;

using Contentstack.Management.Core.Models;


ContentstackClient client = new ContentstackClient("<AUTHTOKEN>");

Query query = client.Stack().Query().IncludeCount();

Limit

The ‘limit’ parameter will return a specific number of Objects in the output.

NameTypeDescription
value (required)Double

Number of object in limit.

using Contentstack.Management.Core;

using Contentstack.Management.Core.Models;


ContentstackClient client = new ContentstackClient("<AUTHTOKEN>");

Query query = client.Stack().Query().Limit(5);

Skip

The ‘skip’ parameter will skip a specific number of Object in the output.

NameTypeDescription
value (required)Double

Number of object to skip

using Contentstack.Management.Core;

using Contentstack.Management.Core.Models;


ContentstackClient client = new ContentstackClient("<AUTHTOKEN>");

Query query = client.Stack().Query().Skip(5);