graphql-client
graphql-client copied to clipboard
Cannot compile queries without parameters
I am able to successfully compile examples that have variables such as
query PuppySmiles($after: String) {
reddit {
subreddit(name: "puppysmiles") {
newListings(limit: 6, after: $after) {
title
fullnameId
url
}
}
}
}
but if I try to use a query that does not have a variable (in this case, after)
query FooBar {
reddit {
subreddit(name: "puppysmiles") {
newListings(limit: 6, after: "foobar") {
title
fullnameId
url
}
}
}
}
The code does not compile for me.
Same problem, I cannot use any query that does not use variables(Which is most of them...)
I just checked out this repo to fix this, and it seems like it actually already works in the repo. It seems that maybe they have not performed a cargo publish in a very long time (7 months), so perhaps it was fixed but never published.
indeed, pointing to the repo directly, that part of the code compile, thanks for the tips!
Edit: other error I had were related to custom scalar that I had to fix.
Either this was fixed, or this repo is abandonware, so closing