-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Input type? #17
Comments
That's a use case we haven't considered. You can possibly try something like:
Haven't actually tried this code, but maybe it will give you a good starting point. |
Hi, Thanks for the help. Strangely, I'm getting the same problem. What would be the main difference writing like that vs naturally? Except I suppose the additional methods dataclass provides. I suspect there might be a property that doesn't get correctly overridden that strawberry uses to identify the type? |
Hi, @Bingdom, you can use Like this: @strawberry.input
@strawberry_sqlalchemy_mapper.type(User)
class UserInput:
__exclude__ = ["id", "password_hash"] This help me with that limitation, I hope it can help you too! |
Hello,
I was wondering if there's a way to map to an input type?
In Strawberry, you could just do:
But doing that with this library doesn't make strawberry recognize it as an input
Error:
Upvote & Fund
The text was updated successfully, but these errors were encountered: