mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-10-30 23:47:55 +03:00 
			
		
		
		
	Add descriptions to the fields as well
This commit is contained in:
		
							parent
							
								
									b8ecc3929d
								
							
						
					
					
						commit
						2a3d92682a
					
				|  | @ -88,8 +88,22 @@ class Connection(ObjectType): | |||
|         _meta.node = node | ||||
|         _meta.fields = OrderedDict( | ||||
|             [ | ||||
|                 ("page_info", Field(PageInfo, name="pageInfo", required=True)), | ||||
|                 ("edges", Field(NonNull(List(edge)))), | ||||
|                 ( | ||||
|                     "page_info", | ||||
|                     Field( | ||||
|                         PageInfo, | ||||
|                         name="pageInfo", | ||||
|                         required=True, | ||||
|                         description="Pagination data for this connection.", | ||||
|                     ), | ||||
|                 ), | ||||
|                 ( | ||||
|                     "edges", | ||||
|                     Field( | ||||
|                         NonNull(List(edge)), | ||||
|                         description="Contains the nodes in this connection.", | ||||
|                     ), | ||||
|                 ), | ||||
|             ] | ||||
|         ) | ||||
|         return super(Connection, cls).__init_subclass_with_meta__( | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user