graphene/graphene/relay/utils.py
2015-12-02 22:47:37 -08:00

12 lines
283 B
Python

from .types import Node
def is_node(object_type):
return object_type and issubclass(
object_type, Node) and not object_type._meta.abstract
def is_node_type(object_type):
return object_type and issubclass(
object_type, Node) and object_type._meta.abstract