You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a GraphQL schema that I'm using codegen for schema & operations generation, just like the README suggest.
I wonder if there is a better way in sgqlc to construct variables with type hints so the experience will be closer to sending queries with GraphQL playground, see this API example.
I'd like to have:
Autocomplete in IDE (currently fields are part of **kwargs and not part of init args).
Type hints for the variables, mainly because I have many inputs and some of them are nested so it's very errors prune.
currently I'm building my variables with the schema objects I generated:
input = CollectionWhereInput(name='some-collection_name', create_time_gt=datetime.time())
op = Operations.query.get_collections
res = endpoint(op, variables=input.__to_json_value__())
Thanks.
The text was updated successfully, but these errors were encountered:
I'm having a GraphQL schema that I'm using
codegen
for schema & operations generation, just like the README suggest.I wonder if there is a better way in sgqlc to construct variables with type hints so the experience will be closer to sending queries with GraphQL playground, see this API example.
I'd like to have:
**kwargs
and not part of init args).currently I'm building my variables with the schema objects I generated:
Thanks.
The text was updated successfully, but these errors were encountered: