How to achieve filtering?
See original GitHub issueHi,
It would be good if graphene mongo had support for filters. For example
query { allPersons(filter: { age_gt: 18 }) { firstName lastName } }
Is there any other way to achieve this or fire a query like thin in graphene-mongo?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Quick start: Filter data by using an AutoFilter - Microsoft Support
On the Data tab, in the Sort & Filter group, click Filter. The Sort and Filter group on the Data tab · Click...
Read more >How to Filter in Excel (Easy Tutorial)
Filter · 1. Click any single cell inside a data set. · 2. On the Data tab, in the Sort & Filter group,...
Read more >Excel 2010: Filtering Data - GCF Global
To add another filter: · Uncheck the boxes next to the data you don't want to view. Check the boxes next to the...
Read more >How to Achieve Agile Market Research by Filtering Data
First off, our filtering data function allows researchers to reach the correct respondents, with demographics categories that filter through common categories ...
Read more >Data Filtering Guide - Jotform
In this guide, we walk through the ins and outs of data filtering and make what most consider a complex topic much simpler....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, I have had the same issue and I solved it by creating a filter class like this (It even got pagination 😱): models.py
And the schema
Example Query:
To define what field should be querried like what you have to name the fields in the ProductFilter class according to your needs (http://docs.mongoengine.org/guide/querying.html) Maybe a bit late I know but maybe it helps someone
I’ve been working on filtering stuff with graphene-mongo. It’s very early work (wasn’t planning to put it up till later), so full disclaimers, etc. etc. but you can check it out here (python 3 only):
https://github.com/riverfr0zen/graphene-mongo-extras
Since there isn’t much documentation yet, I also put up a repo with an example flask app that shows you how the queries might look: https://github.com/riverfr0zen/graphene-mongo-extras-examples