gql API reference
51 public APIs from gql (graphql-python/gql) — 21 classes, 5 functions, 25 methods. Signatures extracted by static analysis of the actual source.
Repository: graphql-python/gql
| Kind | Count |
|---|---|
| Classes | 21 |
| Functions | 5 |
| Methods | 25 |
API list
func
gql.cli.autodetect_transport(url:URL) -> strDetects which transport should be used depending on url.
func
gql.cli.get_introspection_args(args:Namespace) -> DictGet the introspection args depending on the schema_download argument
func
gql.cli.get_parser(with_examples:bool=False) -> ArgumentParserProvides an ArgumentParser for the gql-cli script.
func
gql.cli.positive_int_or_none(value_str:str) -> Optional[int]Convert a string argument value into either an int or None.
method
gql.client.AsyncClientSession.fetch_schema() -> NoneFetch the GraphQL schema explicitly using introspection.
method
gql.client.Client.validate(request:GraphQLRequest) -> None:meta private:
class
gql.dsl.DSLDirectableMixin class for DSL elements that can have directives.
method
gql.dsl.DSLDirectable.directives(*directives:DSLDirective) -> SelfAdd directives to this DSL element.
method
gql.dsl.DSLDirectable.directives_ast() -> Tuple[DirectiveNode, ...]Get AST directive nodes for this element.
method
gql.dsl.DSLDirectable.is_valid_directive(directive:DSLDirective) -> boolCheck if a directive is valid for this DSL element.
class
gql.dsl.DSLDirectiveThe DSLDirective represents a GraphQL directive for the DSL code.
method
gql.dsl.DSLDirective.name() -> strGet the directive name.
class
gql.dsl.DSLFieldThe DSLField represents a GraphQL field for the DSL code.
method
gql.dsl.DSLField.directives(*directives:DSLDirective) -> SelfAdd directives to this field.
method
gql.dsl.DSLField.is_valid_directive(directive:DSLDirective) -> boolCheck if directive is valid for Field locations.
method
gql.dsl.DSLField.name():meta private:
class
gql.dsl.DSLFragmentDSLFragment represents a named GraphQL fragment for the DSL code.
method
gql.dsl.DSLFragment.is_valid_directive(directive:DSLDirective) -> boolCheck if directive is valid for Fragment Definition locations.
method
gql.dsl.DSLFragment.name() -> str:meta private:
method
gql.dsl.DSLFragment.on(type_condition:DSLType) -> SelfProvides the GraphQL type of this fragment.
class
gql.dsl.DSLFragmentSpreadRepresents a fragment spread (usage) with its own directives.
method
gql.dsl.DSLFragmentSpread.directives(*directives:DSLDirective) -> SelfAdd directives to this fragment spread.
method
gql.dsl.DSLFragmentSpread.is_valid_directive(directive:DSLDirective) -> boolCheck if directive is valid for Fragment Spread locations.
method
gql.dsl.DSLFragmentSpread.name() -> str:meta private:
method
gql.dsl.DSLInlineFragment.directives(*directives:DSLDirective) -> SelfAdd directives to this inline fragment.
method
gql.dsl.DSLInlineFragment.is_valid_directive(directive:DSLDirective) -> boolCheck if directive is valid for Inline Fragment locations.
method
gql.dsl.DSLInlineFragment.on(type_condition:DSLType) -> SelfProvides the GraphQL type of this inline fragment.
class
gql.dsl.DSLMetaFieldDSLMetaField represents a GraphQL meta-field for the DSL code.
class
gql.dsl.DSLOperationInterface for GraphQL operations.
class
gql.dsl.DSLSchemaThe DSLSchema is the root of the DSL code.
class
gql.dsl.DSLTypeThe DSLType represents a GraphQL type for the DSL code.
func
gql.dsl.ast_from_serialized_value_untyped(serialized:Any) -> Optional[ValueNode]Given a serialized value, try our best to produce an AST.
class
gql.graphql_request.GraphQLRequestGraphQL Request to be executed.
class
gql.transport.appsync_auth.AppSyncApiKeyAuthenticationAWS authentication class using an API key
class
gql.transport.appsync_auth.AppSyncIAMAuthenticationAWS authentication class using IAM.
class
gql.transport.appsync_auth.AppSyncJWTAuthenticationAWS authentication class using a JWT access token.
method
gql.transport.async_transport.AsyncTransport.execute_batch(reqs:List[GraphQLRequest], *args:Any, **kwargs:Any) -> List[ExecutionResult]Execute multiple GraphQL requests in a batch.
class
gql.transport.common.adapters.connection.AdapterConnectionAbstract interface for subscription connections.
method
gql.transport.common.adapters.connection.AdapterConnection.close() -> NoneClose the connection.
method
gql.transport.common.adapters.connection.AdapterConnection.connect() -> NoneConnect to the server.
method
gql.transport.common.adapters.connection.AdapterConnection.receive() -> strReceive message from the server.
method
gql.transport.common.adapters.connection.AdapterConnection.send(message:str) -> NoneSend message to the server.
class
gql.transport.exceptions.TransportAlreadyConnectedTransport is already connected.
class
gql.transport.exceptions.TransportClosedTransport is already closed.
class
gql.transport.exceptions.TransportConnectionFailedTransport connection failed.
class
gql.transport.exceptions.TransportErrorBase class for all the Transport exceptions
class
gql.transport.exceptions.TransportProtocolErrorTransport protocol error.
class
gql.transport.exceptions.TransportQueryErrorThe server returned an error for a specific query.
class
gql.transport.exceptions.TransportServerErrorThe server returned a global error.
method
gql.transport.transport.Transport.execute(request:GraphQLRequest, *args:Any, **kwargs:Any) -> ExecutionResultExecute GraphQL query.
method
gql.transport.transport.Transport.execute_batch(reqs:List[GraphQLRequest], *args:Any, **kwargs:Any) -> List[ExecutionResult]Execute multiple GraphQL requests in a batch.
About this data
These signatures were extracted from the public source of graphql-python/gql
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.