Skip to content
SkillsDB Help Center
SkillsDB Help Center

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 } } }