Use last version of graphql-core. Fixed introspection #3

This commit is contained in:
Syrus Akbary 2015-10-08 17:30:46 -07:00
parent ecc2fa1e6e
commit fbd9465e57
2 changed files with 4 additions and 3 deletions

View File

@ -4,6 +4,7 @@ from graphql.core import graphql
from graphql.core.type import ( from graphql.core.type import (
GraphQLSchema as _GraphQLSchema GraphQLSchema as _GraphQLSchema
) )
from graphql.core.utils.introspection_query import introspection_query
from graphene import signals from graphene import signals
from graphene.utils import cached_property from graphene.utils import cached_property
@ -71,7 +72,7 @@ class Schema(object):
) )
def introspect(self): def introspect(self):
return self._schema.get_type_map() return self.execute(introspection_query).data
def register_internal_type(fun): def register_internal_type(fun):

View File

@ -24,7 +24,7 @@ class PyTest(TestCommand):
setup( setup(
name='graphene', name='graphene',
version='0.1.2', version='0.1.3',
description='Graphene: Python DSL for GraphQL', description='Graphene: Python DSL for GraphQL',
long_description=open('README.rst').read(), long_description=open('README.rst').read(),
@ -56,7 +56,7 @@ setup(
install_requires=[ install_requires=[
'six', 'six',
'blinker', 'blinker',
'graphql-core==0.1a0', 'graphql-core==0.1a2',
'graphql-relay==0.1.4' 'graphql-relay==0.1.4'
], ],
tests_require=[ tests_require=[