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

Readme: Filter example wrong? #48

Closed
FrediBach opened this issue Jul 3, 2018 · 0 comments
Closed

Readme: Filter example wrong? #48

FrediBach opened this issue Jul 3, 2018 · 0 comments
Labels

Comments

@FrediBach
Copy link

FrediBach commented Jul 3, 2018

This example:

{
  allPosts(views: 254) {
    title
    views
  }
}

Should probably be:

{
  allPosts(filter: {views: 254}) {
    title
    views
  }
}

Right? At least that's how I've got it to work on my query:

{
  League (id: "switzerland") {
    Waypoints {
      lat
      lng
      radius
      points
      minAltitude
      name
      Type {
        name
      }
      description
    }
  }
  allFlights(
    sortField: "score", 
    sortOrder: "DESC", 
    page: 0, 
    perPage: 10, 
    filter: { date: "2018-07-03" }
  ) {
    date
    score
    User {
      name
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants