Initial docs

This commit is contained in:
Patrick Arminio 2017-06-23 11:55:29 +01:00
parent 14bc1cdb92
commit 60b6ba82ba
2 changed files with 22 additions and 0 deletions

View File

@ -11,4 +11,5 @@ Contents:
filtering
authorization
debug
rest-framework
introspection

21
docs/rest-framework.rst Normal file
View File

@ -0,0 +1,21 @@
Integration with Django Rest Framework
======================================
You can re-use your Django Rest Framework serializer with
graphene django.
Mutation
--------
You can create a Mutation based on a serializer by using the
`SerializerMutation` base class:
.. code:: python
from graphene_django.rest_framework.mutation import SerializerMutation
class MyAwesomeMutation(SerializerMutation):
class Meta:
serializer_class = MySerializer