Redwood-Tutorial/Prisma Help
Hello all, It was recommended by someone in the Redwood community that I seek help here. I'm hoping we have someone familiar with the Redwood tutorial that can assist me with the tutorial. I completed it and it had all the functionality suggested at the end of the tutorial but I had several test failures. I reset by repo back to end of chapter 6 and until I could identify when the errors start happening. Once I introduce this resolver in chapter 7, section: Accessing currentUser in the API side, Add Fields to the SDL and service, This is the file posts.js. Resolver:
" export const Post = {
user: (_obj, { root }) =>
db.post.findFirst({ where: { id: root.id } }).user(),"
}
I get several of the same type of test failures that state, "Argument 'user' is missing". I know that with this tutorial the userId is not hardcoded in the tests and that it uses context and the resolver to direct the userId. Any help would be appreciated. I am including a screen shot of one of the test failures.
1 Reply