diff --git a/README.md b/README.md index d2a9137976..e1e85c6037 100644 --- a/README.md +++ b/README.md @@ -48,8 +48,8 @@ import { GraphQLString, } from 'graphql'; -var schema = new GraphQLSchema({ - query: new GraphQLObjectType({ +var schema = new GraphQLSchemaImpl({ + query: new GraphQLObjectTypeImpl({ name: 'RootQueryType', fields: { hello: { diff --git a/docs-old/APIReference-GraphQL.md b/docs-old/APIReference-GraphQL.md index 3aea9e87ba..8781c2e86e 100644 --- a/docs-old/APIReference-GraphQL.md +++ b/docs-old/APIReference-GraphQL.md @@ -32,8 +32,8 @@ _Schema_