You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and then attempt the query with params { number: "1" }, the transform function runs but does not actually serialize. Instead, we simply get the sent input.
The main reason for attempting to use @Transform here is because of not being able to use Field-level Pipes or field-middleware if I want to create an ArgsType class.
Is there an existing issue for this?
Current behavior
If I define an ArgsType:
and use it in a resolver:
and then attempt the query with params
{ number: "1" }
, the transform function runs but does not actually serialize. Instead, we simply get the sent input.Minimum reproduction code
https://stackblitz.com/edit/request-context-nestjs-issue?file=src%2Fapp.module.ts
Steps to reproduce
Expected behavior
The args should be serialized, such that given the above example:
Input:
{ number: "1" }
Output:
{ number: 1 }
This is expected due to this response in another issue.
Package version
@nestjs/apollo
: ^12.2.0Graphql version
graphql
: ^16.9.0@apollo/server
: ^4.11.0class-transformer
: ^0.5.1NestJS version
^10.4.1
Node.js version
20.9.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: