subgrounds.client module
Small module containing low level functions related to sending GraphQL http requests.
- subgrounds.client.get_schema(url)
Runs the introspection query on the GraphQL API served localed at
url
and returns the result. In case of errors, an exception containing the error message is thrown.
- subgrounds.client.query(url, query_str, variables={})
Executes the GraphQL query
query_str
with variablesvariables
against the API served aturl
and returns the response data. In case of errors, an exception containing the error message is thrown.