Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

GraphQL

Ghislain B edited this page Oct 16, 2017 · 51 revisions

OData Backend Service to get data from a backend server with OData.

This service is in the work... it's coming, stay tuned...

The service supports with/without cursor, the GraphQL query output will be different depending on what the flag is set to.

With cursor

With cursor, the query can have 4 arguments:

  • first: integer representing how many do we want to pull starting from the start
  • after: string representing the cursor to query after
  • last: integer representing how many do we want to pull starting from the end
  • before: string representing the cursor to query before

For example

  users (first:20, after:"YXJyYXljb25uZWN0aW9uOjM=") {
    totalCount
    pageInfo {
      hasNextPage
      endCursor
    }
    edges {
      cursor
      node {
        name
        gender
      }
    }
  }

Without cursor

Without cursor, the query can have 3 arguments:

  • first: integer representing how many do we want to pull starting from the start
  • last: integer representing how many do we want to pull starting from the end
  • offset: integer representing how many to skip

For example

  users (first:20, offset: 10) {
    totalCount
    pageInfo {
      hasNextPage
    }
    nodes {
      name
      gender
    }
  }

Contents

Clone this wiki locally