Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve subgraph / query documentation based on current practices #138

Closed
trentmc opened this issue Sep 5, 2023 · 0 comments
Closed

Improve subgraph / query documentation based on current practices #138

trentmc opened this issue Sep 5, 2023 · 0 comments
Labels
Type: Enhancement New feature or request

Comments

@trentmc
Copy link
Member

trentmc commented Sep 5, 2023

Now that many things have stabilized, we can go back to our README documentation and improve our queries.

A useful input: from Alex in Slack:

I'm using this query for general overview on subgraph:

query{
  predictContracts{
    id
    token{
      name
    }
    subscriptions(orderBy: expireTime orderDirection:desc first:10){
      user {
        id
      }
      expireTime
    }
    slots(orderBy: slot orderDirection:desc first:10){
      slot
      roundSumStakesUp
      roundSumStakes
      predictions(orderBy: timestamp orderDirection:desc){
        stake
        user {
          id
        }
        timestamp
        payout{
          payout
          predictedValue
          trueValue
        }
      }
      trueValues{
        trueValue
      }
    }
  } 
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant