-
Notifications
You must be signed in to change notification settings - Fork 6
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 object can't have nested input object field #1754
Comments
Nvmind figured out part of it, need to use custom type instead of this setup |
What was the custom type solution you used?
Looking at the example, it feels like it should work so may still be worth
fixing eventually.
…On Tue, Feb 20, 2024 at 22:17 Ashley Xue ***@***.***> wrote:
Nvmind figured out part of it, need to use custom type instead of this
setup
—
Reply to this email directly, view it on GitHub
<#1754 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACS2VN2PMBNNFFABLQTX2Y3YUWGOZAVCNFSM6AAAAABDM5QCUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJVHE3DOMBRGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@lolopinto there were two setups that compiled with custom types, but only one actually generated the schema.gql file correctly
I think you also see this in the example you provided here, there's no ContactLabel2 type in the schema:
Do we possibly need something like |
Gonna reopen this as I think this is still worth updating as I ran into this again. Though please let me know if I'm just doing it wrong. Basically just trying to do:
which gives |
presumably, you're still using v0.1.x and not on the v0.2.0-alpha, right? fixed in main but will need to backport a few things over for v0.1.x |
Setup
I have AInput that contains an inner BInput field that I want to setup like this:
But I can't regen the code due to this error:
I tried setting up
BInput
using@gqlObjectType
instead, which seems to successfully regen, but the graphql type is incorrect as it needs to be an Input type not just a generic type, so the server just errors out.Question
Should there be a separate
@gqlInputField
we can use? Or is there a setup I'm missing? Thanks!The text was updated successfully, but these errors were encountered: