Skip to content

Latest commit

 

History

History
64 lines (57 loc) · 1.15 KB

readme.md

File metadata and controls

64 lines (57 loc) · 1.15 KB

Cuarto de Milla - API

Pagination

The api provides a pagination system for make querys.

Query:

{
  allStations(first:2, after: "YXJyYXljb25uZWN0aW9uOjE=" ){
    pageInfo{
      startCursor
      endCursor
      hasNextPage
      hasPreviousPage
    }
    edges{
      cursor
      node{
        name
        register
        state
      }
    }
  }
}

Response

{
  "data": {
    "allStations": {
      "pageInfo": {
        "startCursor": "YXJyYXljb25uZWN0aW9uOjI=",
        "endCursor": "YXJyYXljb25uZWN0aW9uOjM=",
        "hasNextPage": true,
        "hasPreviousPage": false
      },
      "edges": [
        {
          "cursor": "YXJyYXljb25uZWN0aW9uOjI=",
          "node": {
            "name": "CIRCULO DOS, S.A. DE C.V.",
            "register": "PL/635/EXP/ES/2015"
          }
        },
        {
          "cursor": "YXJyYXljb25uZWN0aW9uOjM=",
          "node": {
            "name": "Becktrop Operadora SA de CV",
            "register": "PL/708/EXP/ES/2015"
          }
        }
      ]
    }
  }
}

More Information:

See the documentation here