graphene-django/docs/rest-framework.rst
Patrick Arminio 60b6ba82ba Initial docs
2017-06-26 09:19:49 +01:00

22 lines
478 B
ReStructuredText

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