Skip to content
Developerhome

Example GraphQL queries for Companies

  Less than to read

First five Companies sorted by code in ascending order, with pagination and filtered

query MyNamedQuery {
  xtremX3System {
    company {
      query(first: 5, orderBy: "{code:1}" , filter:"{legislation: {_ne: null}}") {
        edges {
          node {
            code
            legislation {
              code
              description
              defaultValue
            }
            isLegalCompany
          }
        }
        pageInfo {
          endCursor
          hasNextPage
          startCursor
          hasPreviousPage
        }
      }
    }
  }
}