Ejemplo n.º 1
0
# -*- coding: utf-8 -*-
from graphene.pyutils.version import get_version

from .directives import all_directives
from .fields import DjangoObjectField, DjangoFilterListField, DjangoFilterPaginateListField, \
    DjangoListObjectField
from .middleware import ExtraGraphQLDirectiveMiddleware
from .mutation import DjangoSerializerMutation
from .paginations import LimitOffsetGraphqlPagination, PageGraphqlPagination, CursorGraphqlPagination
from .types import DjangoObjectType, DjangoInputObjectType, DjangoListObjectType, DjangoSerializerType

VERSION = (0, 3, 8, 'alpha', '10')

__version__ = get_version(VERSION)

__all__ = (
    '__version__',

    # FIELDS
    'DjangoObjectField',
    'DjangoFilterListField',
    'DjangoFilterPaginateListField',
    'DjangoListObjectField',

    # MUTATIONS
    'DjangoSerializerMutation',

    # PAGINATIONS
    'LimitOffsetGraphqlPagination',
    'PageGraphqlPagination',
    # 'CursorGraphqlPagination',  # Not implemented yet
Ejemplo n.º 2
0
# -*- coding: utf-8 -*-
from graphene.pyutils.version import get_version

from .directives import get_all_directives
from .fields import DjangoObjectField, DjangoFilterListField, DjangoFilterPaginateListField, \
    DjangoListObjectField
from .middleware import ExtraGraphQLDirectiveMiddleware
from .mutation import DjangoSerializerMutation
from .paginations import LimitOffsetGraphqlPagination, PageGraphqlPagination, CursorGraphqlPagination
from .types import DjangoObjectType, DjangoInputObjectType, DjangoListObjectType, DjangoSerializerType

VERSION = (0, 3, 8, 'alpha', '3')

__version__ = get_version(VERSION)

__all__ = (
    '__version__',

    # FIELDS
    'DjangoObjectField',
    'DjangoFilterListField',
    'DjangoFilterPaginateListField',
    'DjangoListObjectField',

    # MUTATIONS
    'DjangoSerializerMutation',

    # PAGINATIONS
    'LimitOffsetGraphqlPagination',
    'PageGraphqlPagination',
    # 'CursorGraphqlPagination',  # Not implemented yet