-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
Hello.
I'm creating a webapp and I have really long RootQuery, with many other queries in it. Is there any way to split code beetwen files?
My code looks like this(it's only a small part of it):
const RootQuery = new GraphQLObjectType({ name:'RootQuery', fields:{ getUser:{ type:UserType, resolve(parent,args,request){ return request.user ? request.user : {errMsg: 'User not logged in'}; } }, } })
Reactions are currently unavailable