Open Bobrokus opened 2 months ago
It does the same thing even when I create a fragment for the product in setProduct.productSet.product
:
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
}
Is this a bug or intended behaviour?
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.
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. Just put your time into things that deserve it, I believe in you.
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?
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.
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 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.
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.
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 jj
does things that your standard github desktop user usually wouldn't.
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
object