Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Move to more idiomatic GraphQL API query and response structure #794

Closed
3 tasks done
deekerno opened this issue Apr 24, 2023 · 1 comment
Closed
3 tasks done

Move to more idiomatic GraphQL API query and response structure #794

deekerno opened this issue Apr 24, 2023 · 1 comment
Assignees
Labels
fuel-explorer This PR is directly related to the block explorer P: High
Milestone

Comments

@deekerno
Copy link
Contributor

deekerno commented Apr 24, 2023

Our GraphQL API responses are pretty good right now, but as we move to being used by the public, we should try to adhere to common practices or idioms where we can.

The following query is from @luizstacio, and contains what I feel should be a good starting query and response structure:

query {
  transactions(first:10) {
    nodes {
      id
    }
    pageInfo {
      hasPreviousPage
    }
  }
  blocks(first:10) {
    nodes {
      id
    }
    pageInfo {
      hasPreviousPage
    }
  }
}

The requisite sub-issues are:

@ra0x3 ra0x3 added this to the Beta-4.5 milestone May 1, 2023
@ra0x3 ra0x3 added the P: High label May 3, 2023
@ra0x3 ra0x3 added the fuel-explorer This PR is directly related to the block explorer label May 8, 2023
@ra0x3
Copy link
Contributor

ra0x3 commented May 18, 2023

Gonna close.

@ra0x3 ra0x3 closed this as completed May 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fuel-explorer This PR is directly related to the block explorer P: High
Projects
None yet
Development

No branches or pull requests

2 participants