Skip to content

Commit 60b6ba8

Browse files
committed
Initial docs
1 parent 14bc1cd commit 60b6ba8

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ Contents:
1111
filtering
1212
authorization
1313
debug
14+
rest-framework
1415
introspection

docs/rest-framework.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Integration with Django Rest Framework
2+
======================================
3+
4+
You can re-use your Django Rest Framework serializer with
5+
graphene django.
6+
7+
8+
Mutation
9+
--------
10+
11+
You can create a Mutation based on a serializer by using the
12+
`SerializerMutation` base class:
13+
14+
.. code:: python
15+
16+
from graphene_django.rest_framework.mutation import SerializerMutation
17+
18+
class MyAwesomeMutation(SerializerMutation):
19+
class Meta:
20+
serializer_class = MySerializer
21+

0 commit comments

Comments
 (0)