Replies: 1 comment
-
Currently the lib has no support for REST, this is being added though in #200, it currently still in development (I'm developing it inside a other project and porting it back here) but still needs a bit of work (documentation, tests, use correct naming etc) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there, we are looking for the best way to support the same filter pattern that a graphql DTO uses in a REST controller.
Accessing and utilizing the query builder is easy enough:
But we are having a hard time working out how the REST controller should be decorated in order to properly validate the type usage.
Something like this feels close:
But
Filter
does not seem to have a class constructor, so using it in the@ClassField
decorator is a no-go. The field could of course be accepted as a string and parsed into an object, but I feel like that isn't taking advantage of the validation options at hand.Or maybe I'm just way off base here?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions