graphQL-client-unity
graphQL-client-unity copied to clipboard
Is there a way to pass arguments to subfields in the query?
for instance
query paginateProducts {
site {
products (first: 3) {
(etc.)
defaultImage{
url(width: 200, height: 200)
}
}
}
passing args like this is pretty common in business oriented schema and I can't find info on doing this with this project.
Thanks
hi Cskillen,
no, it is currently not possible with this tool. (except you write out your entire query as text and use HttpHandler.PostAsync). this feature will be worked on though but i can't give a proper estimated timeline for it.
Hey,
Thanks for the reply. I was working on pulling some of the arguments for the field from the schema and displaying them in the unity editor, but I don't have enough time atm so I just went the 'pass the query in with http handler' route.
If I ever get around to more fully implementing that I'll give you a shout, otherwise I'll just update the library once you implement that.
great!
Any update on this? I've got a need for it and possibly the resources to help make the feature
Hey, I was working on it for a while but that project was cancelled before I finished it fully. I don't remember where I was at with it fully. I think I ended up using newtomsoft to serialize the request for the most part.
I can take a look later
On Wed, Apr 28, 2021, 23:00 Mark Hayford, @.***> wrote:
Any update on this? I've got a need for it and possibly the resources to help make the feature
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Gazuntype/graphQL-client-unity/issues/9#issuecomment-828923818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFNE26UR5BOML6TXACP5WUDTLDKVFANCNFSM4NQ6GAHQ .
Yea let me know if you take a peek. It's definitely something that will be valueable for our project and we're in progress on making a few changes now.
I'll take a look at it over the weekend, I was just in a crunch the last couple days prepping for a demo. I'll try to pull out what I had and put a demo of what I was doing. I think it was mostly just using the newtonsoft to decipher a raw string into the body of the graphql request.
I need to strip out all the private project details, first.
Cheers
C. Skillen
On Fri, Apr 30, 2021 at 4:44 PM Mark Hayford @.***> wrote:
Yea let me know if you take a peek. It's definitely something that will be valueable for our project and we're in progress on making a few changes now.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Gazuntype/graphQL-client-unity/issues/9#issuecomment-830417321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFNE26Q4A54R26LPWOXDME3TLMQCBANCNFSM4NQ6GAHQ .
I'll take a look at it over the weekend, I was just in a crunch the last couple days prepping for a demo. I'll try to pull out what I had and put a demo of what I was doing. I think it was mostly just using the newtonsoft to decipher a raw string into the body of the graphql request. I need to strip out all the private project details, first. Cheers C. Skillen … On Fri, Apr 30, 2021 at 4:44 PM Mark Hayford @.***> wrote: Yea let me know if you take a peek. It's definitely something that will be valueable for our project and we're in progress on making a few changes now. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#9 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFNE26Q4A54R26LPWOXDME3TLMQCBANCNFSM4NQ6GAHQ .
Did you end up looking at it? I currently very badly need this feature :(