-
Notifications
You must be signed in to change notification settings - Fork 46
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
cynic-querygen
ignores fragment names
#1015
Comments
It does the same thing even when I create a fragment for the product in query getFeedCollection($id: ID!) {
collection(id: $id) {
products {
nodes {
...FeedProductFragment
}
}
}
}
mutation setProduct($id: ID) {
productSet(input: { id: $id }) {
product {
# Created a fragment for this
...SetProductFragment
}
}
}
# New fragment
fragment SetProductFragment on Product {
id
}
fragment FeedProductFragment on Product {
title
id
} |
cynic-querygen
ignoring fragmentcynic-querygen
ignores fragment names
I'm actually not sure. I agree that it's not ideal, but I couldn't tell you whether or not it was intentional or an oversight - was quite a long time ago that I wrote the generator. Either way: I'd be happy to accept a PR that fixes this, but I'm unlikely to fix myself anytime soon. I mostly view the generator as a helper, so minor issues that are easily fixed by hand aren't that important to me. Unfortunately there's just too many things that are higher priority. But if you want to try and fix please feel free. |
Thanks for the reply! I planned on looking deeper into the generator but found it a little too complex for me the first time I checked it. I might give it a second chance. I agree that it's not a top priority and I think there are many other things that need a lot more attention than this. Btw: I've hit a potential brick wall so expect an issue and maybe, hopefully, a PR. |
btw how do you generate your branch names? |
I use jj instead of git. Automatic branch names are one of it's many excellent features. |
Would you recommend it to a beginner? |
I am honestly not sure. I find it easier than git for a lot of things - but I'm quite far from being a beginner so my perspective may be a bit skewed. |
Is it compatible with Github Desktop? I think it should if it's compatible with git. |
Hard to say without trying it. I'd expect most functionality to work, but there might be some rough edges where |
Input
Output
The problem
Notice
Product
andProduct2
in the result.Product2
should be named after theFeedProductFragment
fragment.Is this a bug or intended behaviour?
API Reference:
collection
queryproductSet
mutationProduct
objectThe text was updated successfully, but these errors were encountered: