Skip to content
Developer home
X3

Example GraphQL queries for Sites

  Less than to read

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

{
  sage{
    x3System {
      site (first : 5, orderBy: "{ code: 1  }"){
        edges{
          node {
            code
            description
            shortDescription
          }
        }
      }
    }
  }
}

Try it on our demo endpoint

Site details by code

{
  sage{
    x3System {
      site (filter : "{code :'AO012'}"){
        edges{
          node {
            code
            description
            shortDescription
          }
        }
      }
    }
  }
}

Try it on our demo endpoint