This project is in a very early state. It achieves the core functionality below, but is missing niceties such as configuration options.
Better docs will come later. For now, please see the tests:
See the examples
folder for a demo app and query examples.
- Filter using Mongoengine query operators
- Provide the correct query operators in GraphQL for each field type
- Nested filtering with AND/OR logic for filter sets
- Ordering of results
- Configure filtering field
- depth
- exclude fields
- include fields
- Support list of embedded fields
- Examine compatibility with various fields
- Support reference fields and list of reference fields
- a way to set up interfaces (MongoNodeInterface)
- use interfaces with list fields
- use interfaces with connection fields (InterfaceConnectionField)
- See example app
- total count in ConnectionField graphql queries (CountableConnectionBase)
- MongoengineInputObjectType
- An InputObjectType that derives from an assigned model
- Improved implementing interfaces. It is no longer necessary to create a separate
graphene.Connection
subclass. Now you useIntefaceConnectionField
and pass in yourMongoNodeInterface
subclass directly.- NOTE: If you are doing it the old way, this may be a breaking change (haven't tested). In any case, it is recommended you switch to the new way.
FilteringField
is now a subclass ofInterfaceConnectionField
. Shouldn't change anything except now it supports interface implementation as indicated above.
- Dependencies updated
- Support camel case params in orderBy
- MongoengineInterface now extends graphene.Node and renamed to MongoNodeInterface.
- Added example app showing the use of interfaces with list fields or connections.
- Filtering
- Fixed required fields generating required filters (issue 2)
- Filtering
- List of EmbeddedDocumentFields now supported issue
- Moved examples from separate repo into
examples
folder in this repo
- MongoengineExtrasType added to support new Meta config options (in-lieu of MongoengineObjectType)
- Filtering
- Depth and excluded fields can now be configured
- Initial