- Initial release
- A single global schema instance where models can be registered
- The schema is declared in Relay-style (connections, edges, nodes)
- Enable GraphQL queries for Django models
- Enabling can be done via a decorator or a function call
- By default, includes the following queries:
- `getModelName` for getting a specific instance with an ID
- `listModelName` for listing model instances
- Adds a `graphql_node_name` field to model classes
- Adds a `graphql_id` property to models, which can be used to retrieve the
Global ID of a model instance.
- Configure by adding a `GraphQL` meta class to the model class
- Alternatively supply a configuration class to the decorator
- Also supports model-specific configuration via one of the following:
- A metaclass on the model class
- A configuration object passed in the register decorator or function
- Merge of the two (where paramter takes precedence)
- Supported configuration options
- `filters`: A `django-filter` compatible set of filters supported on the
model's QuerySet. List or a Dictionary.
- `exclude_fields`: A list of field names to exclude from the schema
- `search_fields`: A list of fields to perform search on
- `ordering_fields`: A list of fields that can be used to order results
- `default_ordering`: What ordering to use if none was specified
- `ordering_fields` and `search_fields` don't do anything yet