New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define resolver for Custom scalar type #9
Comments
@valburyakov I also had a problem with it. Solution: date-time.scalar-type.ts
bootstrap.ts
But resolvers in createSchema function have problem, because this function overwrite resolvers property. I created pull request to fix it. Maybe there are other better solutions, but I have not found one. |
@partyka95 Thx for the solution. But for me it still doesn't work, I did like in your example but no resolver for custom scalar is loaded: app.module.ts
Or this solution is working only with your fix in PR ? And show your |
Another temporary solution :
|
Fixed thanks to #8 pull request. I'll push it together with the incoming release 🙂 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm trying to migrate my old nestjs app with graphQL to new GraphqlModule. And i faced with problem how to define resolver for scalar type, previously i had:
So how do i define resolver for Date type using nestjs annotations ?
I've tried this but it doesn't work
The text was updated successfully, but these errors were encountered: