Tag: merge
-
Another way of merging graphql resolvers
0 In many tutorials that I have read, the most common way of using graphql resolvers is like below. export const rootResolvers: IResolvers = { Query: { getUserById: async (root, { id }, context, info) => { return await getUserController(id); }, getUsers: async (root, args, context, info) => { return await getUsersController(); }, }, Mutation:…