-
Notifications
You must be signed in to change notification settings - Fork 38
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
Handling ObjectId in filter #57
Comments
Sorry for the overdue response. That sounds like a feature worth adding to the package. I'm not sure when I'll get around to it, but in the meantime you can:
|
As long as your scalar type is ObjectId and not string it works just fine. same with date BTW. or make your own...
and date...
|
I also am trying to learn graphql with this library and encountered the same problem. Yup this helped me |
When I try the above custom scalar type code, I receive... Argument type {name: string, description: string, parseValue(=): , serialize(): , parseLiteral(): ( | null)} is not assignable to parameter type GraphQLScalarTypeConfig<*, *> I think that's just a warning from my IDE. The code compiles, but at runtime I receive the error... |
Say I want to get a specific person record and filter by _id
Currently that will generate a filter like so
Can you detect when "_id" is used and make it essentially do this instead?
The text was updated successfully, but these errors were encountered: