While utilizing graphql-yoga, encountering an issue when executing the 'users' query. Specifically, the error message TypeError: Cannot read properties of undefined (reading 'users') keeps appearing. Despite my attempts at seeking assistance online and from chatgpt, I have been unsuccessful in resolving it.myJsonFile schema.js query.js index.js for resolvers
I am confident that my json file isn't corrupted as I can successfully print it to the console when required. After conducting some research, I suspected that it might be related to context; however, I am unsure how to address this.