-
-
Notifications
You must be signed in to change notification settings - Fork 475
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
Using Union
and OneofObject
on the same struct
#1116
Labels
enhancement
New feature or request
Comments
sunli829
added
enhancement
New feature or request
and removed
bug
Something isn't working
labels
Oct 24, 2022
sunli829
added a commit
that referenced
this issue
Oct 24, 2022
Fixed in Line 445 in 7f70c7e
|
Thanks a lot! But when I try to use the git repository, I get the following compilation error (seems to come from your crate):
EDIT: I'm on latest stable if that can be of any use, but this doesn't seem like using nightly would solve the problem. |
You should to use the same version: async-graphql = { git="..." }
# async-graphql-poem = "1.0.0" <<<< change to the line below
async-graphql-poem = { git="..." } |
Indeed, this makes it work! Thanks a lot for your help 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I found out that you can't use both
Union
andOneofObject
derives on the same struct. Is there something I'm missing (like some kind of additional attribute or impl) or is that plainly impossible right now?It'd be immensely useful for this to work, just like you can put both
SimpleObject
andInputObject
on the same struct.Thanks in advance for your help!
EDIT: Here are the error messages I'm getting
And if I add a
#[graphql(input_name = "xxx")]
after the derive attributes:The text was updated successfully, but these errors were encountered: