sgqlc
sgqlc copied to clipboard
Simple GraphQL Client
While the error is misleading (I should fix that), in GraphQL you can't select fields of an union type directly, you must use fragments to select depending on each type...
For example if we have a input ``` class DogInput(sgqlc.types.Input): __schema__ = wex_schema birth_date = sgqlc.types.Field(ZonedDateTime, graphql_name='birthDate') ``` and we run a query with given filter ``` [{expression: GREATER_THAN_OR_EQUAL_TO, value:...
Loving this project. I feel like this project would benefit from a short quick start tutorial that demonstrate common methods such as: **Create item** ``` mutation = Operation(schema.Mutation) # note...
I'm trying to figure out how to automate pagination or at least introspect to find a Connection or PageInfo object. (that way I can generically paginate when there's a single...
Setup and integrate a CI system such as travis/circle/jenkins to verify the quality (flake8 + nose tests)
Support for named fragments as below: ```graphql query { node(id: "some-id") { ... UserLogin } } fragment UserName on User { login } ````
Hi, I am using the generator to create an operations.py file from multiple input files and deep import path. My generate command is: `sgqlc-codegen operation --schema schema.json src.services.apc.graphql.schema operations.py graphql/orders.gql...
## 🐜 Bug Report When running the test suite these four tests fail: ``` [ 13s] FAILED sgqlc/operation/__init__.py::sgqlc.operation [ 13s] FAILED sgqlc/types/__init__.py::sgqlc.types [ 13s] FAILED sgqlc/types/__init__.py::sgqlc.types.Field.__bytes__ [ 13s] FAILED sgqlc/types/__init__.py::sgqlc.types.Schema.__getattr__...
I am facing problem with unicode characters (Like Chinese characters). its not getting converted to proper characters. I have found that we can use __json_dump_args__ to pass ensure_ascii=False. How can...
# Add support for the GraphQL-WS Subprotocol ## Reason for request The current implementation of the WebSocket endpoint can only handle the Apollo-WS transport, which has been deprecated. As new...