mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-23 01:57:08 +03:00
22 lines
478 B
ReStructuredText
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
|
|
|