gql の API リファレンス
gql (graphql-python/gql) の公開 API 51 件 —— クラス 21、関数 5、メソッド 25。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: graphql-python/gql
| 種別 | 件数 |
|---|---|
| クラス | 21 |
| 関数 | 5 |
| メソッド | 25 |
API 一覧
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.
この情報について
掲載しているシグネチャは graphql-python/gql の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。