I am writing a resolver function wherein I am expecting the VS intellisense to give suggestions for the mongodb methods e.g. when I type models.Note I am expecting 'find', 'findById' methods from VS intellisense.
const resolvers = {
Query: {
hello: () => 'Hello World',
notes: async () => {
return await models.Note.find();
},
note: async (_, args) => {
return await models.Note.findById(args.id);
}
},