mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 12:44:15 +03:00
Added is_type_of functionality
This commit is contained in:
parent
440a981750
commit
633f72cfe9
|
@ -162,7 +162,8 @@ class BaseObjectType(object):
|
|||
cls._meta.type_name,
|
||||
description=cls._meta.description,
|
||||
interfaces=[i.internal_type(schema) for i in cls._meta.interfaces],
|
||||
fields=fields
|
||||
fields=fields,
|
||||
is_type_of=getattr(cls, 'is_type_of', None)
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user