mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-10-31 07:57:26 +03:00 
			
		
		
		
	handle objects being constructed in the typemap multiple times
This commit is contained in:
		
							parent
							
								
									ceffc4de69
								
							
						
					
					
						commit
						7952f94f53
					
				|  | @ -119,6 +119,8 @@ class TypeMap(GraphQLTypeMap): | ||||||
|     @classmethod |     @classmethod | ||||||
|     def construct_objecttype(cls, map, type): |     def construct_objecttype(cls, map, type): | ||||||
|         from .definitions import GrapheneObjectType |         from .definitions import GrapheneObjectType | ||||||
|  |         if type._meta.name in map: | ||||||
|  |             return map | ||||||
|         map[type._meta.name] = GrapheneObjectType( |         map[type._meta.name] = GrapheneObjectType( | ||||||
|             graphene_type=type, |             graphene_type=type, | ||||||
|             name=type._meta.name, |             name=type._meta.name, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user