mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-11-04 09:57:53 +03:00 
			
		
		
		
	Initial docs
This commit is contained in:
		
							parent
							
								
									14bc1cdb92
								
							
						
					
					
						commit
						60b6ba82ba
					
				| 
						 | 
				
			
			@ -11,4 +11,5 @@ Contents:
 | 
			
		|||
   filtering
 | 
			
		||||
   authorization
 | 
			
		||||
   debug
 | 
			
		||||
   rest-framework
 | 
			
		||||
   introspection
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										21
									
								
								docs/rest-framework.rst
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								docs/rest-framework.rst
									
									
									
									
									
										Normal 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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user