Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions graphene/relay/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

from graphql_relay import connection_from_list

from ..types import AbstractType, Boolean, Int, List, String
from ..types import (AbstractType, Boolean, Enum, Int, Interface, List, NonNull, Scalar, String,
Union)
from ..types.field import Field
from ..types.objecttype import ObjectType, ObjectTypeMeta
from ..types.options import Options
from ..utils.is_base_type import is_base_type
from ..utils.props import props
from .node import Node, is_node
from .node import is_node


class PageInfo(ObjectType):
Expand Down Expand Up @@ -57,7 +58,7 @@ def __new__(cls, name, bases, attrs):
options.local_fields = OrderedDict()

assert options.node, 'You have to provide a node in {}.Meta'.format(cls.__name__)
assert issubclass(options.node, (Node, ObjectType)), (
assert issubclass(options.node, (Scalar, Enum, ObjectType, Interface, Union, NonNull)), (
'Received incompatible node "{}" for Connection {}.'
).format(options.node, name)

Expand Down