File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,6 @@ const data = {
3636 ] ,
3737} ;
3838
39- const UserType = new GraphQLObjectType ( {
40- name : 'User' ,
41- fields : ( ) => ( {
42- id : { type : new GraphQLNonNull ( GraphQLID ) } ,
43- name : { type : new GraphQLNonNull ( GraphQLString ) } ,
44- Posts : { type : new GraphQLList ( PostType ) } ,
45- } ) ,
46- } ) ;
47-
4839const PostType = new GraphQLObjectType ( {
4940 name : 'Post' ,
5041 fields : ( ) => ( {
@@ -56,6 +47,15 @@ const PostType = new GraphQLObjectType({
5647 } ) ,
5748} ) ;
5849
50+ const UserType = new GraphQLObjectType ( {
51+ name : 'User' ,
52+ fields : ( ) => ( {
53+ id : { type : new GraphQLNonNull ( GraphQLID ) } ,
54+ name : { type : new GraphQLNonNull ( GraphQLString ) } ,
55+ Posts : { type : new GraphQLList ( PostType ) } ,
56+ } ) ,
57+ } ) ;
58+
5959/*
6060const ListMetadataType = new GraphQLObjectType({
6161 name: 'ListMetadata',
You can’t perform that action at this time.
0 commit comments