@@ -49,7 +49,7 @@ export class RootSchema {
4949
5050Example usage of @Ctx and @Root .
5151``` typescript
52- import { ObjectType , Ctx , Field , Root } from ' graphql-decorator' ;
52+ import { ObjectType , Ctx , Field , Root } from ' graphql-schema- decorator' ;
5353import { GraphQLID , GraphQLString , GraphQLList } from ' graphql' ;
5454import * as AnswerTypes from ' graphql/answer/types/index' ;
5555
@@ -78,7 +78,7 @@ export class UserType {
7878
7979Use of @Pagination with @OrderBy
8080``` typescript
81- import { ObjectType , Arg , Ctx , List , Field } from ' graphql-decorator' ;
81+ import { ObjectType , Arg , Ctx , List , Field } from ' graphql-schema- decorator' ;
8282
8383@ObjectType ({description: ' Get all users query.' })
8484export class UsersQuery {
@@ -203,7 +203,7 @@ It provide the following features:
203203This tool requires Node.js v4.4.0 or later.
204204
205205``` sh
206- npm i graphql-decorator typescript
206+ npm i graphql-schema- decorator typescript
207207```
208208
209209This tool uses ES.next Decorators and Reflect, so create tsconfig.json :
@@ -230,7 +230,7 @@ And write .ts code such as:
230230``` ts
231231/* main.ts */
232232
233- import { Schema , Query , ObjectType , Field , schemaFactory } from " graphql-decorator" ;
233+ import { Schema , Query , ObjectType , Field , schemaFactory } from " graphql-schema- decorator" ;
234234const graphql = require (" graphql" ).graphql ;
235235
236236// @ObjectType creates GraphQLObjectType from a class
@@ -276,7 +276,7 @@ You can declare a GraphQL schema class with `@Schema`, `@Query` and `@Mutation`
276276For example:
277277
278278``` ts
279- import { Schema , Query , Mutation } from " graphql-decorator" ;
279+ import { Schema , Query , Mutation } from " graphql-schema- decorator" ;
280280
281281@Schema ()
282282class MySchema {
0 commit comments