Skip to content
Developerhome

Example GraphQL queries for Sites

  Less than to read

Code and descriptions for first 5 sites sorted by code in ascending order

{
  xtremX3System{
    site {
      query (first : 5, orderBy: "{ code: 1  }"){
        edges{
          node {
            code
            name
            legalCompany{
              code
            }
            isStockSite
          }
        }
      }
    }
  }
}

Site details by code

{
  xtremX3System{
    site {
      query (filter : "{code :'AO012'}"){
        edges{
          node {
            code
            name
            legalCompany{
              code
            }
            isStockSite
          }
        }
      }
    }
  }
}