mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-11-04 01:47:45 +03:00 
			
		
		
		
	Improved README text
This commit is contained in:
		
							parent
							
								
									2271d3f1c2
								
							
						
					
					
						commit
						3f9b94b73f
					
				| 
						 | 
					@ -1,10 +1,8 @@
 | 
				
			||||||
# Graphene: Python DSL for GraphQL
 | 
					# Graphene: Pythonic GraphQL [](https://travis-ci.org/syrusakbary/graphene) [](https://coveralls.io/github/syrusakbary/graphene?branch=master)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This is a library to use GraphQL in Python in a easy way.
 | 
					This is a library to use GraphQL in a Pythonic and easy way.
 | 
				
			||||||
It will map the models/fields to internal GraphQL-py objects without effort. Including automatic [Django models](#djangorelay-schema) conversion.
 | 
					It maps the models/fields to internal GraphQLlib objects without effort. Including automatic [Django models](#djangorelay-schema) conversion.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[](https://travis-ci.org/syrusakbary/graphene)
 | 
					 | 
				
			||||||
[](https://coveralls.io/github/syrusakbary/graphene?branch=master)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
*Note: This library requires installing [graphqllib](https://github.com/dittos/graphqllib) and [graphql-relay](https://github.com/syrusakbary/graphql-relay-py) external libraries.*
 | 
					*Note: This library requires installing [graphqllib](https://github.com/dittos/graphqllib) and [graphql-relay](https://github.com/syrusakbary/graphql-relay-py) external libraries.*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -83,6 +81,7 @@ class Ship(DjangoNode):
 | 
				
			||||||
    class Meta:
 | 
					    class Meta:
 | 
				
			||||||
        model = YourDjangoModelHere
 | 
					        model = YourDjangoModelHere
 | 
				
			||||||
        # only_fields = ('id', 'name') # Only map this fields from the model
 | 
					        # only_fields = ('id', 'name') # Only map this fields from the model
 | 
				
			||||||
 | 
					        # excluxe_fields ('field_to_excluxe', ) # Exclude mapping this fields from the model
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Query(graphene.ObjectType):
 | 
					class Query(graphene.ObjectType):
 | 
				
			||||||
    node = relay.NodeField()
 | 
					    node = relay.NodeField()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user