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

filter how to use? #42

Closed
fangaofeng opened this issue Apr 27, 2017 · 5 comments
Closed

filter how to use? #42

fangaofeng opened this issue Apr 27, 2017 · 5 comments

Comments

@fangaofeng
Copy link

My ui have a search , how can i use relay?
how do i realize this example by connectfiled or relay?

query combineMovies {
  allMovies(filter: {
    OR: [{
      AND: [{
        releaseDate_gte: "2009"
      }, {
        title_starts_with: "The Dark Knight"
      }]
    }, {
      title: "Inception"
    }]
  }) {
    title
    releaseDate
  }
}

result:
{
  "data": {
    "allMovies": [
      {
        "title": "Inception",
        "releaseDate": "2010-08-28T20:00:00.000Z"
      },
      {
        "title": "The Dark Knight Rises",
        "releaseDate": "2012-07-20T00:00:00.000Z"
      }
    ]
  }
}
@mrkaspa
Copy link

mrkaspa commented May 19, 2017

Same problem here

@BenjamWhite
Copy link

same!

@shanmugh
Copy link

+1

@erikwrede
Copy link
Member

This issue has been inactive for a long time, so I'm closing it.
Filtering is currently unsupported in graphene-sqlalchemy. For 2.x you can use the graphene-sqlalchemy-filter library. We are currently working on more advanced filtering for graphene-sqlalchemy 3.0.

See #335 for progress.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics referencing this issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants