graphql-client
graphql-client copied to clipboard
Typed, correct GraphQL requests and responses in Rust
When generating from a single query-file that contains multiple mutations I get: ```rust pub mod op_a { pub const QUERY : & str = "mutation op_a\n mutation op_b\n" ... }...
Closes #411 and #262 :)
Currently, default scalars are hardcoded on the generated code -- Int, Float, String, Boolean, and ID. Requesting a feature to skip defining this scalars. My particular use case is I...
Previously these were returned in an essentially random order. This would lead to flapping in the generated code when running the client CLI against the same schema multiple times. In...
I am not sure of the scope of this, but I am proposing a `operation!` (or maybe another name) macro that would allow something like this ```rust fn main() ->...
Hello, Not all my graphql types are in one files, there is "non standard" way to import types to the `schema.graphql` from other files (usually generated), as shown in the...
When following example code, I get the following error: ``` unresolved import `serde` use of undeclared crate or module `serde` ```
I am a brand new baby Rustacean so perhaps I'm missing something, but generated code does not seem to be recognized in VSCode for syntax highlighting, autocomplete, etc. Any ideas...
The README says the following: > In order to provide precise types for a response, graphql_client needs to read the query and the schema at compile-time. > To download the...
## description if schema is like this, ```graphql query BadQuery { badCollection { __typename ... on BadType { name } } } ``` "BadType" causes `value: Error("unknown variant BadType, there...