graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Typed, correct GraphQL requests and responses in Rust

Results 127 graphql-client issues
Sort by recently updated
recently updated
newest added

Basically subject. I may be missing something, but I don't see why this won't work. `Variables` structures are generated in a closed module alongside `OPERATION_NAME` and `QUERY` strings, which means...

Sometimes there are mutations input structures with tons of options which we don't want to specify one by one which have an enums as field, and this: https://github.com/graphql-rust/graphql-client/blob/32cd3c75b1706233036fb0cd952f0135d8def245/graphql_client_codegen/src/codegen/enums.rs#L22 breaks compilation...

Can't write `if some_field == SomeEnum::XXX` because PartialEq is not derived on generated enums. This should be very easy to implement.

query.graphql: ```gql query Q { a { ...BFragment } } fragment BFragment on TypeOne { b { ...AFragment } } fragment AFragment on TypeTwo { c } ``` schema.graphql: ```gql...

bug

[`GraphQLQuery::Variables`](https://docs.rs/graphql_client/0.9.0/graphql_client/trait.GraphQLQuery.html#associatedtype.Variables) is the way currently used to represent that some type is, once serialized, a correct `variables` set for the given query. However we could imagine that several structures, once...

I think the dependencies for the web client may be a little out of date.

Hi! Super excited you are working on this and it looks great! The Juniper project has had an [open request to build a graphql client](https://github.com/graphql-rust/juniper/issues/61) for a while now. Is...

Hi, I'm new to rust so sorry if this is just a newbie mistake. I'm running into the following error: ``` error[E0107]: wrong number of type arguments: expected 1, found...

enhancement

As per the documentation: ``` graphql-client introspect-schema --help graphql-client-introspect-schema 0.9.0 Get the schema from a live GraphQL API. The schema is printed to stdout USAGE: graphql-client introspect-schema [OPTIONS] FLAGS: -h,...

I'm generating the client code with the CLI tool. The generated file for a query "GetData" will look something like this, with a custom scalar "URL": ```rust pub struct GetData;...