Skip to content
SkillsDB Help Center home
SkillsDB Help Center home

Sorting

In most query operations, we provide the ability to sort the result set using the orderBy input parameter.

For example:

query getDomains { getDomains (input: { orderBy: { DomainName: ASC } }) { count data { DomainId DomainName } } }

In this query, we are asking for the domains but they need to be sorted in ascending order based on the DomainName.

The other value allowed is of course DESC:

query getDomains { getDomains (input: { orderBy: { DomainName: DESC } }) { count data { DomainId DomainName } } }