graphql-core の API リファレンス
graphql-core (graphql-python/graphql-core) の公開 API 361 件 —— クラス 103、関数 152、メソッド 106。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: graphql-python/graphql-core
| 種別 | 件数 |
|---|---|
| クラス | 103 |
| 関数 | 152 |
| メソッド | 106 |
API 一覧
class
src.graphql.error.graphql_error.GraphQLFormattedErrorFormatted GraphQL error
class
src.graphql.error.syntax_error.GraphQLSyntaxErrorA GraphQLError representing a syntax error.
func
src.graphql.execution.aborted_graphql_execution_error.get_abort_reason_message(reason:Any) -> strGet the error message for the given abort reason.
class
src.graphql.execution.collect_fields.CollectFieldsContextContext for collecting fields.
class
src.graphql.execution.collect_fields.CollectedFieldsCollected fields with new defer usages.
class
src.graphql.execution.collect_fields.DeferUsageAn optionally labelled linked list of defer usages.
func
src.graphql.execution.execute.execute_root_selection_set(executor:Executor) -> AwaitableOrValue[ExecutionResult]Execute the root selection set.
func
src.graphql.execution.execute.execute_subscription_event(executor:Executor) -> AwaitableOrValue[ExecutionResult]Execute a single subscription event.
class
src.graphql.execution.executor.ExecutorExecutor for a validated GraphQL operation.
method
src.graphql.execution.executor.Executor.collect_subfields(return_type:GraphQLObjectType, field_details_list:FieldDetailsList) -> CollectedFieldsCollect subfields.
method
src.graphql.execution.executor.Executor.complete_leaf_value(return_type:GraphQLLeafType, result:Any) -> AnyComplete a leaf value.
method
src.graphql.execution.executor.Executor.complete_value(return_type:GraphQLOutputType, field_details_list:FieldDetailsList, info:GraphQLResolveInfo, path:Path, result:Any, position_context:TContext | None) -> AwaitableOrValue[Any]Complete a value.
method
src.graphql.execution.executor.Executor.execute_operation(serially:bool | None=None) -> AwaitableOrValue[ExecutionResult | ExperimentalIncrementalExecutionResults]Execute an operation.
method
src.graphql.execution.executor.Executor.get_stream_usage(field_details_list:FieldDetailsList, path:Path) -> StreamUsage | NoneGet stream usage.
class
src.graphql.execution.executor.StreamUsageStream directive usage information
func
src.graphql.execution.executor.default_field_resolver(source:Any, info:GraphQLResolveInfo, **args:Any) -> AnyDefault field resolver.
func
src.graphql.execution.executor.default_type_resolver(value:Any, info:GraphQLResolveInfo, abstract_type:GraphQLAbstractType) -> AwaitableOrValue[str | None]Default type resolver function.
func
src.graphql.execution.executor.get_typename(value:Any) -> str | NoneGet the ``__typename`` property of the given value.
func
src.graphql.execution.executor.to_nodes(field_details_list:FieldDetailsList) -> list[FieldNode]Convert a field group to a list of field nodes.
class
src.graphql.execution.incremental.build_execution_plan.ExecutionPlanA plan for executing fields.
func
src.graphql.execution.incremental.build_execution_plan.get_filtered_defer_usage_set(field_details_list:FieldDetailsList) -> RefSet[DeferUsage]Get a filtered set of defer usages.
class
src.graphql.execution.incremental.computation.ComputationA lazily primed, memoized, abortable computation.
method
src.graphql.execution.incremental.computation.Computation.abort(reason:BaseException | None=None) -> AwaitableOrValue[None]Abort the computation with an optional reason.
class
src.graphql.execution.incremental.incremental_publisher.IncrementalPublisherPublish incremental results.
class
src.graphql.execution.incremental.incremental_publisher.IncrementalPublisherContextThe context for incremental publishing.
class
src.graphql.execution.incremental.work_queue.GroupA group of work with an optional parent group.
class
src.graphql.execution.incremental.work_queue.GroupFailureEventA group failed with an error.
class
src.graphql.execution.incremental.work_queue.GroupValuesEventAll values produced for a completed group.
class
src.graphql.execution.incremental.work_queue.StreamA stream of work items backed by a queue.
class
src.graphql.execution.incremental.work_queue.StreamFailureEventA stream failed with an error.
class
src.graphql.execution.incremental.work_queue.StreamQueueThe queue interface a stream must provide.
method
src.graphql.execution.incremental.work_queue.StreamQueue.abort(reason:BaseException | None=None) -> Awaitable[None] | NoneAbort the stream with an optional reason.
class
src.graphql.execution.incremental.work_queue.StreamSuccessEventA stream completed successfully.
class
src.graphql.execution.incremental.work_queue.WorkNew work produced during execution.
method
src.graphql.execution.incremental.work_queue.WorkQueue.cancel(reason:BaseException | None=None) -> NoneCancel all pending work, awaiting any asynchronous cleanup.
class
src.graphql.execution.incremental.work_queue.WorkTaskA computation belonging to one or more groups.
class
src.graphql.execution.middleware.MiddlewareManagerManager for the middleware chain.
class
src.graphql.execution.types.CompletedResultCompleted execution result
class
src.graphql.execution.types.ExecutionResultThe result of GraphQL execution.
class
src.graphql.execution.types.FormattedCompletedResultFormatted completed execution result
class
src.graphql.execution.types.FormattedExecutionResultFormatted execution result
class
src.graphql.execution.types.FormattedIncrementalDeferResultFormatted incremental deferred execution result
class
src.graphql.execution.types.FormattedIncrementalStreamResultFormatted incremental stream execution result
class
src.graphql.execution.types.FormattedPendingResultFormatted pending execution result
class
src.graphql.execution.types.IncrementalDeferResultIncremental deferred execution result
class
src.graphql.execution.types.IncrementalStreamResultIncremental streamed execution result
class
src.graphql.execution.types.InitialIncrementalExecutionResultInitial incremental execution result.
class
src.graphql.execution.types.PendingResultPending execution result
class
src.graphql.execution.types.SubsequentIncrementalExecutionResultSubsequent incremental execution result.
class
src.graphql.language.ast.DefinitionNodeBase class for all definition nodes.
class
src.graphql.language.ast.ExecutableDefinitionNodeBase class for executable definition nodes.
class
src.graphql.language.ast.NodeAST nodes
method
src.graphql.language.ast.Node.to_dict(locations:bool=False) -> dictConvert node to a dictionary.
class
src.graphql.language.ast.NullValueNodeA null value node has no fields.
class
src.graphql.language.ast.SelectionNodeBase class for selection nodes.
class
src.graphql.language.ast.TypeDefinitionNodeBase class for type definition nodes.
class
src.graphql.language.ast.TypeExtensionNodeBase class for type extension nodes.
class
src.graphql.language.ast.TypeNodeBase class for type nodes.
class
src.graphql.language.ast.TypeSystemDefinitionNodeBase class for type system definition nodes.
class
src.graphql.language.ast.ValueNodeBase class for value nodes.
func
src.graphql.language.ast.node_class(cls:type[T_Instance]) -> type[T_Instance]Decorator to define a GraphQL AST Node class.
func
src.graphql.language.block_string.is_printable_as_block_string(value:str) -> boolCheck whether the given string is printable as a block string.
func
src.graphql.language.block_string.print_block_string(value:str, minimize:bool=False) -> strPrint a block string in the indented block form.
func
src.graphql.language.character_classes.is_digit(char:str) -> boolCheck whether char is a digit For internal use by the lexer only.
class
src.graphql.language.lexer.EscapeSequenceThe string value and lexed size of an escape sequence.
method
src.graphql.language.lexer.Lexer.advance() -> TokenAdvance the token stream to the next non-ignored token.
method
src.graphql.language.lexer.Lexer.create_token(kind:TokenKind, start:int, end:int, value:str | None=None) -> TokenCreate a token with line and column location information.
method
src.graphql.language.lexer.Lexer.lookahead() -> TokenLook ahead and return the next non-ignored token.
method
src.graphql.language.lexer.Lexer.print_code_point_at(location:int) -> strPrint the code point at the given location.
method
src.graphql.language.lexer.Lexer.read_block_string(start:int) -> TokenRead a block string token from the source file.
method
src.graphql.language.lexer.Lexer.read_comment(start:int) -> TokenRead a comment token from the source file.
method
src.graphql.language.lexer.Lexer.read_escaped_character(position:int) -> EscapeSequenceRead escaped character sequence
method
src.graphql.language.lexer.Lexer.read_escaped_unicode_fixed_width(position:int) -> EscapeSequenceRead escaped unicode with fixed width
method
src.graphql.language.lexer.Lexer.read_escaped_unicode_variable_width(position:int) -> EscapeSequenceRead escaped unicode with variable width
method
src.graphql.language.lexer.Lexer.read_name(start:int) -> TokenRead an alphanumeric + underscore name from the source.
method
src.graphql.language.lexer.Lexer.read_next_token(start:int) -> TokenGet the next token from the source starting at the given position.
method
src.graphql.language.lexer.Lexer.read_number(start:int, first_char:str) -> TokenReads a number token from the source file.
method
src.graphql.language.lexer.Lexer.read_string(start:int) -> TokenRead a single-quote string token from the source file.
func
src.graphql.language.lexer.is_punctuator_token_kind(kind:TokenKind) -> boolCheck whether the given token kind corresponds to a punctuator.
func
src.graphql.language.lexer.is_supplementary_code_point(body:str, location:int) -> boolCheck whether the current location is a supplementary code point.
func
src.graphql.language.lexer.is_unicode_scalar_value(char:str) -> boolCheck whether this is a Unicode scalar value.
class
src.graphql.language.location.FormattedSourceLocationFormatted source location
class
src.graphql.language.location.SourceLocationRepresents a location in a Source.
method
src.graphql.language.location.SourceLocation.formatted() -> FormattedSourceLocationGet formatted source location.
class
src.graphql.language.parser.ParserGraphQL AST parser.
method
src.graphql.language.parser.Parser.advance_lexer() -> NoneAdvance the lexer.
method
src.graphql.language.parser.Parser.any(open_kind:TokenKind, parse_fn:Callable[[], T], close_kind:TokenKind) -> tuple[T, ...]Fetch any matching nodes, possibly none.
method
src.graphql.language.parser.Parser.delimited_many(delimiter_kind:TokenKind, parse_fn:Callable[[], T]) -> tuple[T, ...]Fetch many delimited nodes.
method
src.graphql.language.parser.Parser.expect_keyword(value:str) -> NoneExpect the next token to be a given keyword.
method
src.graphql.language.parser.Parser.expect_optional_keyword(value:str) -> boolExpect the next token optionally to be a given keyword.
method
src.graphql.language.parser.Parser.expect_optional_token(kind:TokenKind) -> boolExpect the next token optionally to be of the given kind.
method
src.graphql.language.parser.Parser.expect_token(kind:TokenKind) -> TokenExpect the next token to be of the given kind.
method
src.graphql.language.parser.Parser.loc(start_token:Token) -> Location | NoneReturn a location object.
method
src.graphql.language.parser.Parser.many(open_kind:TokenKind, parse_fn:Callable[[], T], close_kind:TokenKind) -> tuple[T, ...]Fetch matching nodes, at least one.
method
src.graphql.language.parser.Parser.optional_many(open_kind:TokenKind, parse_fn:Callable[[], T], close_kind:TokenKind) -> tuple[T, ...] | NoneFetch matching nodes, maybe none.
method
src.graphql.language.parser.Parser.parse_argument(is_const:bool=False) -> ArgumentNodeArgument[Const]: Name : Value[?Const]
method
src.graphql.language.parser.Parser.parse_arguments(is_const:bool) -> tuple[ArgumentNode, ...] | NoneArguments[Const]: (Argument[?Const]+)
method
src.graphql.language.parser.Parser.parse_const_argument() -> ConstArgumentNodeArgument[Const]: Name : Value[Const]
method
src.graphql.language.parser.Parser.parse_description() -> StringValueNode | NoneDescription: StringValue
method
src.graphql.language.parser.Parser.parse_directive(is_const:bool) -> DirectiveNodeDirective[Const]: @ Name Arguments[?Const]?
method
src.graphql.language.parser.Parser.parse_directive_definition() -> DirectiveDefinitionNodeDirectiveDefinition
method
src.graphql.language.parser.Parser.parse_directive_definition_extension() -> DirectiveExtensionNodeDirectiveDefinitionExtension
method
src.graphql.language.parser.Parser.parse_directive_location() -> NameNodeDirectiveLocation
method
src.graphql.language.parser.Parser.parse_directive_locations() -> tuple[NameNode, ...]DirectiveLocations
method
src.graphql.language.parser.Parser.parse_directives(is_const:bool) -> tuple[DirectiveNode, ...] | NoneDirectives[Const]: Directive[?Const]+
method
src.graphql.language.parser.Parser.parse_document() -> DocumentNodeDocument: Definition+
method
src.graphql.language.parser.Parser.parse_enum_type_definition() -> EnumTypeDefinitionNodeUnionTypeDefinition
method
src.graphql.language.parser.Parser.parse_enum_type_extension() -> EnumTypeExtensionNodeEnumTypeExtension
method
src.graphql.language.parser.Parser.parse_enum_value_definition() -> EnumValueDefinitionNodeEnumValueDefinition: Description?
method
src.graphql.language.parser.Parser.parse_field() -> FieldNodeField: Alias?
method
src.graphql.language.parser.Parser.parse_field_definition() -> FieldDefinitionNodeFieldDefinition
method
src.graphql.language.parser.Parser.parse_fields_definition() -> tuple[FieldDefinitionNode, ...] | NoneFieldsDefinition: {FieldDefinition+}
method
src.graphql.language.parser.Parser.parse_fragment_definition() -> FragmentDefinitionNodeFragmentDefinition
method
src.graphql.language.parser.Parser.parse_fragment_name() -> NameNodeFragmentName: Name but not ``on``
method
src.graphql.language.parser.Parser.parse_implements_interfaces() -> tuple[NamedTypeNode, ...] | NoneImplementsInterfaces
method
src.graphql.language.parser.Parser.parse_input_object_type_definition() -> InputObjectTypeDefinitionNodeInputObjectTypeDefinition
method
src.graphql.language.parser.Parser.parse_input_object_type_extension() -> InputObjectTypeExtensionNodeInputObjectTypeExtension
method
src.graphql.language.parser.Parser.parse_input_value_def() -> InputValueDefinitionNodeInputValueDefinition
method
src.graphql.language.parser.Parser.parse_interface_type_definition() -> InterfaceTypeDefinitionNodeInterfaceTypeDefinition
method
src.graphql.language.parser.Parser.parse_interface_type_extension() -> InterfaceTypeExtensionNodeInterfaceTypeExtension
method
src.graphql.language.parser.Parser.parse_list(is_const:bool) -> ListValueNodeListValue[Const]
method
src.graphql.language.parser.Parser.parse_name() -> NameNodeConvert a name lex token into a name parse node.
method
src.graphql.language.parser.Parser.parse_named_type() -> NamedTypeNodeNamedType: Name
method
src.graphql.language.parser.Parser.parse_object(is_const:bool) -> ObjectValueNodeObjectValue[Const]
method
src.graphql.language.parser.Parser.parse_object_type_definition() -> ObjectTypeDefinitionNodeObjectTypeDefinition
method
src.graphql.language.parser.Parser.parse_object_type_extension() -> ObjectTypeExtensionNodeObjectTypeExtension
method
src.graphql.language.parser.Parser.parse_operation_definition() -> OperationDefinitionNodeOperationDefinition
method
src.graphql.language.parser.Parser.parse_scalar_type_definition() -> ScalarTypeDefinitionNodeScalarTypeDefinition: Description?
method
src.graphql.language.parser.Parser.parse_scalar_type_extension() -> ScalarTypeExtensionNodeScalarTypeExtension
method
src.graphql.language.parser.Parser.parse_schema_coordinate() -> SchemaCoordinateNodeSchemaCoordinate - Name - Name .
method
src.graphql.language.parser.Parser.parse_schema_definition() -> SchemaDefinitionNodeSchemaDefinition
method
src.graphql.language.parser.Parser.parse_schema_extension() -> SchemaExtensionNodeSchemaExtension
method
src.graphql.language.parser.Parser.parse_selection_set() -> SelectionSetNodeSelectionSet: {Selection+}
method
src.graphql.language.parser.Parser.parse_type_condition() -> NamedTypeNodeTypeCondition: NamedType
method
src.graphql.language.parser.Parser.parse_type_reference() -> TypeNodeType: NamedType or ListType or NonNullType
method
src.graphql.language.parser.Parser.parse_type_system_extension() -> TypeSystemExtensionNodeTypeSystemExtension
method
src.graphql.language.parser.Parser.parse_union_member_types() -> tuple[NamedTypeNode, ...] | NoneUnionMemberTypes
method
src.graphql.language.parser.Parser.parse_union_type_definition() -> UnionTypeDefinitionNodeUnionTypeDefinition
method
src.graphql.language.parser.Parser.parse_union_type_extension() -> UnionTypeExtensionNodeUnionTypeExtension
method
src.graphql.language.parser.Parser.parse_variable() -> VariableNodeVariable: $Name
method
src.graphql.language.parser.Parser.peek(kind:TokenKind) -> boolDetermine if the next token is of a given kind
method
src.graphql.language.parser.Parser.unexpected(at_token:Token | None=None) -> GraphQLErrorCreate an error when an unexpected lexed token is encountered.
func
src.graphql.language.parser.get_token_desc(token:Token) -> strDescribe a token as a string for debugging.
func
src.graphql.language.parser.get_token_kind_desc(kind:TokenKind) -> strDescribe a token kind as a string for debugging.
func
src.graphql.language.predicates.is_definition_node(node:Node) -> TypeGuard[DefinitionNode]Check whether the given node represents a definition.
func
src.graphql.language.predicates.is_selection_node(node:Node) -> TypeGuard[SelectionNode]Check whether the given node represents a selection.
func
src.graphql.language.predicates.is_type_node(node:Node) -> TypeGuard[TypeNode]Check whether the given node represents a type.
func
src.graphql.language.predicates.is_value_node(node:Node) -> TypeGuard[ValueNode]Check whether the given node represents a value.
func
src.graphql.language.print_location.print_prefixed_lines(*lines:tuple[str, str | None]) -> strPrint lines specified like this: ("prefix", "string")
func
src.graphql.language.print_string.print_string(s:str) -> strPrint a string as a GraphQL StringValue literal.
func
src.graphql.language.printer.block(strings:Strings | None) -> strReturn strings inside a block.
func
src.graphql.language.printer.indent(string:str) -> strIndent string with two spaces.
func
src.graphql.language.printer.is_multiline(string:str) -> boolCheck whether a string consists of multiple lines.
func
src.graphql.language.printer.join(strings:Strings | None, separator:str='') -> strJoin strings in a given collection.
func
src.graphql.language.printer.print_ast(ast:Node) -> strConvert an AST into a string.
func
src.graphql.language.printer.wrap(start:str, string:str | None, end:str='') -> strWrap string inside other strings at start and end.
class
src.graphql.language.source.SourceA representation of source input to GraphQL.
method
src.graphql.language.source.Source.get_location(position:int) -> SourceLocationGet source location.
func
src.graphql.language.source.is_source(source:Any) -> TypeGuard[Source]Test if the given value is a Source object.
class
src.graphql.language.token_kind.TokenKindThe different kinds of tokens that the lexer emits
class
src.graphql.language.visitor.EnterLeaveVisitorVisitor with functions for entering and leaving.
class
src.graphql.language.visitor.StackA stack for the visit function.
class
src.graphql.language.visitor.VisitorVisitor that walks through an AST.
class
src.graphql.language.visitor.VisitorActionEnumSpecial return values for the visitor methods.
func
src.graphql.language.visitor.visit(root:Node, visitor:Visitor, visitor_keys:VisitorKeyMap | None=None) -> AnyVisit each node in an AST.
class
src.graphql.pyutils.cached_property.CachedPropertyA cached property.
func
src.graphql.pyutils.convert_case.camel_to_snake(s:str) -> strConvert from CamelCase to snake_case
class
src.graphql.pyutils.description.DescriptionType checker for human-readable descriptions.
method
src.graphql.pyutils.description.Description.isinstance(obj:Any) -> boolCheck whether this is an instance of a description.
method
src.graphql.pyutils.description.Description.register(base:type) -> NoneRegister a class that shall be accepted as a description.
func
src.graphql.pyutils.did_you_mean.did_you_mean(suggestions:Sequence[str], sub_message:str | None=None) -> strGiven [ A, B, C ] return ' Did you mean A, B, or C?'
func
src.graphql.pyutils.format_list.and_list(items:Sequence[str]) -> strGiven [ A, B, C ] return 'A, B, and C'.
func
src.graphql.pyutils.format_list.format_list(conjunction:str, items:Sequence[str]) -> strGiven [ A, B, C ] return 'A, B, (conjunction) C'
func
src.graphql.pyutils.format_list.or_list(items:Sequence[str]) -> strGiven [ A, B, C ] return 'A, B, or C'.
func
src.graphql.pyutils.gather_with_cancel.gather_with_cancel(*awaitables:Awaitable[Any]) -> list[Any]Run awaitable objects in the sequence concurrently.
func
src.graphql.pyutils.identity_func.identity_func(x:T=DEFAULT_VALUE, *_args:Any) -> TReturn the first received argument.
func
src.graphql.pyutils.inspect.inspect(value:Any) -> strInspect value and a return string representation for error messages.
func
src.graphql.pyutils.inspect.trunc_list(s:list) -> listTruncate lists to maximum length.
func
src.graphql.pyutils.inspect.trunc_str(s:str) -> strTruncate strings to maximum length.
func
src.graphql.pyutils.is_awaitable.is_async_iterable(value:Any) -> TypeGuard[AsyncIterable]Return True if object is an asynchronous iterable.
func
src.graphql.pyutils.is_awaitable.is_awaitable(value:Any) -> TypeGuard[Awaitable]Return True if object can be passed to an ``await`` expression.
class
src.graphql.pyutils.path.PathA generic path of string or integer indices
method
src.graphql.pyutils.path.Path.add_key(key:str | int, typename:str | None=None) -> PathReturn a new Path containing the given key.
method
src.graphql.pyutils.path.Path.as_list() -> list[str | int]Return a list of the path keys.
func
src.graphql.pyutils.print_path_list.print_path_list(path:Collection[str | int]) -> strBuild a string describing the path.
method
src.graphql.pyutils.ref_map.RefMap.get(key:Any, default:Any=None) -> AnyGet the mapped value for the given key.
method
src.graphql.pyutils.ref_map.RefMap.items() -> Iterator[tuple[K, V]]Return an iterator over the key/value-pairs of the map.
method
src.graphql.pyutils.ref_map.RefMap.keys() -> Iterator[K]Return an iterator over the keys of the map.
method
src.graphql.pyutils.ref_map.RefMap.update(items:Iterable[tuple[K, V]] | None=None) -> NoneUpdate the map with the given key/value-pairs.
method
src.graphql.pyutils.ref_map.RefMap.values() -> Iterator[V]Return an iterator over the values of the map.
class
src.graphql.pyutils.ref_set.RefSetA set like object that allows mutable objects as elements.
method
src.graphql.pyutils.ref_set.RefSet.add(value:T) -> NoneAdd the given item to the set.
method
src.graphql.pyutils.ref_set.RefSet.discard(value:T) -> NoneRemove the given item from the set if it exists.
method
src.graphql.pyutils.ref_set.RefSet.remove(value:T) -> NoneRemove the given item from the set.
method
src.graphql.pyutils.ref_set.RefSet.update(values:Iterable[T] | None=None) -> NoneUpdate the set with the given items.
class
src.graphql.pyutils.simple_pub_sub.SimplePubSubA very simple publish-subscript system.
method
src.graphql.pyutils.simple_pub_sub.SimplePubSub.emit(event:Any) -> boolEmit an event.
method
src.graphql.pyutils.simple_pub_sub.SimplePubSub.get_subscriber(transform:Callable | None=None) -> SimplePubSubIteratorReturn subscriber iterator
class
src.graphql.pyutils.simple_pub_sub.SimplePubSubIteratorAsync iterator used for subscriptions.
method
src.graphql.pyutils.simple_pub_sub.SimplePubSubIterator.aclose() -> NoneClose the iterator.
method
src.graphql.pyutils.simple_pub_sub.SimplePubSubIterator.empty_queue() -> NoneEmpty the queue.
method
src.graphql.pyutils.simple_pub_sub.SimplePubSubIterator.push_value(event:Any) -> NonePush a new value.
func
src.graphql.pyutils.suggestion_list.suggestion_list(input_:str, options:Collection[str]) -> list[str]Get list with suggestions for a given input.
class
src.graphql.pyutils.undefined.UndefinedTypeAuxiliary class for creating the Undefined singleton.
func
src.graphql.type.assert_name.assert_enum_value_name(name:str) -> strUphold the spec rules about naming enum values.
func
src.graphql.type.assert_name.assert_name(name:str) -> strUphold the spec rules about naming.
class
src.graphql.type.definition.GraphQLArgumentDefinition of a GraphQL argument
method
src.graphql.type.definition.GraphQLArgument.to_kwargs() -> GraphQLArgumentKwargsGet corresponding arguments.
class
src.graphql.type.definition.GraphQLArgumentKwargsPython arguments for GraphQL arguments
class
src.graphql.type.definition.GraphQLEnumTypeKwargsArguments for GraphQL enum types
class
src.graphql.type.definition.GraphQLEnumValueA GraphQL enum value.
method
src.graphql.type.definition.GraphQLEnumValue.to_kwargs() -> GraphQLEnumValueKwargsGet corresponding arguments.
class
src.graphql.type.definition.GraphQLEnumValueKwargsArguments for GraphQL enum values
class
src.graphql.type.definition.GraphQLFieldDefinition of a GraphQL field
method
src.graphql.type.definition.GraphQLField.to_kwargs() -> GraphQLFieldKwargsGet corresponding arguments.
class
src.graphql.type.definition.GraphQLFieldKwargsArguments for GraphQL fields
class
src.graphql.type.definition.GraphQLInputFieldDefinition of a GraphQL input field
method
src.graphql.type.definition.GraphQLInputField.to_kwargs() -> GraphQLInputFieldKwargsGet corresponding arguments.
class
src.graphql.type.definition.GraphQLInputFieldKwargsArguments for GraphQL input fields
class
src.graphql.type.definition.GraphQLInputObjectTypeKwargsArguments for GraphQL input object types
class
src.graphql.type.definition.GraphQLInterfaceTypeKwargsArguments for GraphQL interface types
class
src.graphql.type.definition.GraphQLNamedTypeBase class for all GraphQL named types
method
src.graphql.type.definition.GraphQLNamedType.to_kwargs() -> GraphQLNamedTypeKwargsGet corresponding arguments.
class
src.graphql.type.definition.GraphQLNamedTypeKwargsArguments for GraphQL named types
class
src.graphql.type.definition.GraphQLObjectTypeKwargsArguments for GraphQL object types
class
src.graphql.type.definition.GraphQLResolveInfoCollection of information passed to the resolvers.
class
src.graphql.type.definition.GraphQLScalarTypeKwargsArguments for GraphQL scalar types
class
src.graphql.type.definition.GraphQLTypeBase class for all GraphQL types
class
src.graphql.type.definition.GraphQLUnionTypeKwargsArguments for GraphQL union types
class
src.graphql.type.definition.GraphQLWrappingTypeBase class for all GraphQL wrapping types
func
src.graphql.type.definition.assert_abstract_type(type_:Any) -> GraphQLAbstractTypeAssert that this is a GraphQL abstract type.
func
src.graphql.type.definition.assert_argument(arg:Any) -> GraphQLArgumentAssert that this is a GraphQL argument.
func
src.graphql.type.definition.assert_composite_type(type_:Any) -> GraphQLCompositeTypeAssert that this is a GraphQL composite type.
func
src.graphql.type.definition.assert_enum_type(type_:Any) -> GraphQLEnumTypeAssert that this is a GraphQL enum type.
func
src.graphql.type.definition.assert_enum_value(value:Any) -> GraphQLEnumValueAssert that this is a GraphQL enum value.
func
src.graphql.type.definition.assert_field(field:Any) -> GraphQLFieldAssert that this is a GraphQL field.
func
src.graphql.type.definition.assert_input_field(field:Any) -> GraphQLInputFieldAssert that this is a GraphQL input field.
func
src.graphql.type.definition.assert_input_object_type(type_:Any) -> GraphQLInputObjectTypeAssert that this is a GraphQL input type.
func
src.graphql.type.definition.assert_input_type(type_:Any) -> GraphQLInputTypeAssert that this is a GraphQL input type.
func
src.graphql.type.definition.assert_interface_type(type_:Any) -> GraphQLInterfaceTypeAssert that this is a GraphQL interface type.
func
src.graphql.type.definition.assert_leaf_type(type_:Any) -> GraphQLLeafTypeAssert that this is a GraphQL leaf type.
func
src.graphql.type.definition.assert_list_type(type_:Any) -> GraphQLListAssert that this is a GraphQL list type.
func
src.graphql.type.definition.assert_named_type(type_:Any) -> GraphQLNamedTypeAssert that this is a named GraphQL type.
func
src.graphql.type.definition.assert_non_null_type(type_:Any) -> GraphQLNonNullAssert that this is a non-null GraphQL type.
func
src.graphql.type.definition.assert_nullable_type(type_:Any) -> GraphQLNullableTypeAssert that this is a nullable GraphQL type.
func
src.graphql.type.definition.assert_object_type(type_:Any) -> GraphQLObjectTypeAssume that this is a graphql object type
func
src.graphql.type.definition.assert_output_type(type_:Any) -> GraphQLOutputTypeAssert that this is a GraphQL output type.
func
src.graphql.type.definition.assert_scalar_type(type_:Any) -> GraphQLScalarTypeAssert that this is a GraphQL scalar type.
func
src.graphql.type.definition.assert_type(type_:Any) -> GraphQLTypeAssert that this is a GraphQL type.
func
src.graphql.type.definition.assert_union_type(type_:Any) -> GraphQLUnionTypeAssert that this is a GraphQL union type.
func
src.graphql.type.definition.assert_wrapping_type(type_:Any) -> GraphQLWrappingTypeAssert that this is a GraphQL wrapping type.
func
src.graphql.type.definition.did_you_mean_enum_value(enum_type:GraphQLEnumType, unknown_value_str:str) -> strReturn suggestions for enum value.
func
src.graphql.type.definition.is_abstract_type(type_:Any) -> TypeGuard[GraphQLAbstractType]Check whether this is a GraphQL abstract type.
func
src.graphql.type.definition.is_argument(arg:Any) -> TypeGuard[GraphQLArgument]Check whether this is a GraphQL argument.
func
src.graphql.type.definition.is_composite_type(type_:Any) -> TypeGuard[GraphQLCompositeType]Check whether this is a GraphQL composite type.
func
src.graphql.type.definition.is_enum_type(type_:Any) -> TypeGuard[GraphQLEnumType]Check whether this is a GraphQL enum type.
func
src.graphql.type.definition.is_enum_value(value:Any) -> TypeGuard[GraphQLEnumValue]Check whether this is a GraphQL enum value.
func
src.graphql.type.definition.is_field(field:Any) -> TypeGuard[GraphQLField]Check whether this is a GraphQL field.
func
src.graphql.type.definition.is_input_field(field:Any) -> TypeGuard[GraphQLInputField]Check whether this is a GraphQL input field.
func
src.graphql.type.definition.is_input_object_type(type_:Any) -> TypeGuard[GraphQLInputObjectType]Check whether this is a GraphQL input type.
func
src.graphql.type.definition.is_input_type(type_:Any) -> TypeGuard[GraphQLInputType]Check whether this is a GraphQL input type.
func
src.graphql.type.definition.is_interface_type(type_:Any) -> TypeGuard[GraphQLInterfaceType]Check whether this is a GraphQL interface type.
func
src.graphql.type.definition.is_leaf_type(type_:Any) -> TypeGuard[GraphQLLeafType]Check whether this is a GraphQL leaf type.
func
src.graphql.type.definition.is_list_type(type_:Any) -> TypeGuard[GraphQLList]Check whether this is a GraphQL list type.
func
src.graphql.type.definition.is_named_type(type_:Any) -> TypeGuard[GraphQLNamedType]Check whether this is a named GraphQL type.
func
src.graphql.type.definition.is_non_null_type(type_:Any) -> TypeGuard[GraphQLNonNull]Check whether this is a non-null GraphQL type.
func
src.graphql.type.definition.is_nullable_type(type_:Any) -> TypeGuard[GraphQLNullableType]Check whether this is a nullable GraphQL type.
func
src.graphql.type.definition.is_object_type(type_:Any) -> TypeGuard[GraphQLObjectType]Check whether this is a graphql object type
func
src.graphql.type.definition.is_output_type(type_:Any) -> TypeGuard[GraphQLOutputType]Check whether this is a GraphQL output type.
func
src.graphql.type.definition.is_required_argument(arg:GraphQLArgument | GraphQLVariableSignature) -> boolCheck whether the argument is required.
func
src.graphql.type.definition.is_required_input_field(field:GraphQLInputField) -> boolCheck whether this is input field is required.
func
src.graphql.type.definition.is_scalar_type(type_:Any) -> TypeGuard[GraphQLScalarType]Check whether this is a GraphQL scalar type.
func
src.graphql.type.definition.is_type(type_:Any) -> TypeGuard[GraphQLType]Check whether this is a GraphQL type.
func
src.graphql.type.definition.is_union_type(type_:Any) -> TypeGuard[GraphQLUnionType]Check whether this is a GraphQL union type.
func
src.graphql.type.definition.is_wrapping_type(type_:Any) -> TypeGuard[GraphQLWrappingType]Check whether this is a GraphQL wrapping type.
func
src.graphql.type.definition.resolve_thunk(thunk:Thunk[T]) -> TResolve the given thunk.
class
src.graphql.type.directives.GraphQLDirectiveKwargsArguments for GraphQL directives
func
src.graphql.type.directives.assert_directive(directive:Any) -> GraphQLDirectiveAssert that this is a GraphQL directive.
func
src.graphql.type.directives.is_directive(directive:Any) -> TypeGuard[GraphQLDirective]Check whether this is a GraphQL directive.
class
src.graphql.type.introspection.TypeKindKinds of types
func
src.graphql.type.scalars.boolean_value_to_literal(value:Any) -> ConstValueNode | NoneConvert a boolean value to a Boolean literal in the AST.
func
src.graphql.type.scalars.float_value_to_literal(value:Any) -> ConstValueNode | NoneConvert a float value to a Float literal in the AST.
func
src.graphql.type.scalars.int_value_to_literal(value:Any) -> ConstValueNode | NoneConvert an integer value to an Int literal in the AST.
func
src.graphql.type.scalars.parse_boolean_literal(value_node:ValueNode, _variables:Any=None) -> boolParse a boolean value node in the AST.
func
src.graphql.type.scalars.parse_float_literal(value_node:ValueNode, _variables:Any=None) -> floatParse a float value node in the AST.
func
src.graphql.type.scalars.parse_id_literal(value_node:ValueNode, _variables:Any=None) -> strParse an ID value node in the AST.
func
src.graphql.type.scalars.parse_int_literal(value_node:ValueNode, _variables:Any=None) -> intParse an integer value node in the AST.
func
src.graphql.type.scalars.parse_string_literal(value_node:ValueNode, _variables:Any=None) -> strParse a string value node in the AST.
func
src.graphql.type.scalars.string_value_to_literal(value:Any) -> ConstValueNode | NoneConvert a string value to a String literal in the AST.
class
src.graphql.type.schema.GraphQLSchemaKwargsArguments for GraphQL schemas
func
src.graphql.type.schema.assert_schema(schema:Any) -> GraphQLSchemaAssert that this is a GraphQL schema.
func
src.graphql.type.schema.is_schema(schema:Any) -> TypeGuard[GraphQLSchema]Check whether this is a GraphQL schema.
func
src.graphql.type.schema.remapped_type(type_:GraphQLType, type_map:TypeMap) -> GraphQLTypeGet a copy of the given type that uses this type map.
func
src.graphql.type.validate.assert_valid_schema(schema:GraphQLSchema) -> NoneUtility function which asserts a schema is valid.
func
src.graphql.type.validate.validate_schema(schema:GraphQLSchema) -> list[GraphQLError]Validate a GraphQL schema.
func
src.graphql.utilities.ast_from_value.ast_from_value(value:Any, type_:GraphQLInputType) -> ConstValueNode | NoneProduce a GraphQL Value AST given a Python object.
func
src.graphql.utilities.build_ast_schema.build_ast_schema(document_ast:DocumentNode, assume_valid:bool=False, assume_valid_sdl:bool=False) -> GraphQLSchemaBuild a GraphQL Schema from a given AST.
func
src.graphql.utilities.coerce_input_value.coerce_input_value(input_value:Any, type_:GraphQLInputType) -> AnyCoerce a Python value given a GraphQL Input Type.
func
src.graphql.utilities.concat_ast.concat_ast(asts:Collection[DocumentNode]) -> DocumentNodeConcat ASTs.
class
src.graphql.utilities.extend_schema.TypeExtensionsMapMappings from types to their extensions.
method
src.graphql.utilities.extend_schema.TypeExtensionsMap.for_node(node:TEN) -> defaultdict[str, list[TEN]]Get type extensions map for the given node kind.
class
src.graphql.utilities.find_schema_changes.BreakingChangeType and description of a breaking change
class
src.graphql.utilities.find_schema_changes.BreakingChangeTypeTypes of breaking changes
class
src.graphql.utilities.find_schema_changes.DangerousChangeType and description of a dangerous change
class
src.graphql.utilities.find_schema_changes.DangerousChangeTypeTypes of dangerous changes
class
src.graphql.utilities.find_schema_changes.ListDiffTuple with added, removed and persisted list items.
class
src.graphql.utilities.find_schema_changes.SafeChangeType and description of a safe change
class
src.graphql.utilities.find_schema_changes.SafeChangeTypeTypes of safe changes
func
src.graphql.utilities.find_schema_changes.dict_diff(old_dict:dict, new_dict:dict) -> DictDiffGet differences between two dicts.
func
src.graphql.utilities.find_schema_changes.find_breaking_changes(old_schema:GraphQLSchema, new_schema:GraphQLSchema) -> list[BreakingChange]Find breaking changes.
func
src.graphql.utilities.find_schema_changes.find_dangerous_changes(old_schema:GraphQLSchema, new_schema:GraphQLSchema) -> list[DangerousChange]Find dangerous changes.
func
src.graphql.utilities.find_schema_changes.find_schema_changes(old_schema:GraphQLSchema, new_schema:GraphQLSchema) -> list[SchemaChange]Find schema changes.
func
src.graphql.utilities.find_schema_changes.list_diff(old_list:Collection, new_list:Collection) -> ListDiffGet differences between two lists of named items.
func
src.graphql.utilities.get_operation_ast.get_operation_ast(document_ast:DocumentNode, operation_name:str | None=None) -> OperationDefinitionNode | NoneGet operation AST node.
func
src.graphql.utilities.lexicographic_sort_schema.lexicographic_sort_schema(schema:GraphQLSchema) -> GraphQLSchemaSort GraphQLSchema.
class
src.graphql.utilities.map_schema_config.MappedSchemaContextContext provided to the configuration mappers.
class
src.graphql.utilities.map_schema_config.SchemaElementKindThe set of GraphQL Schema Elements.
func
src.graphql.utilities.print_schema.is_defined_type(type_:GraphQLNamedType) -> boolCheck if the given named GraphQL type is a defined type.
func
src.graphql.utilities.print_schema.print_args(args:dict[str, GraphQLArgument], indentation:str='') -> strPrint the given GraphQL arguments.
func
src.graphql.utilities.print_schema.print_block(items:list[str]) -> strPrint a block with the given items.
func
src.graphql.utilities.print_schema.print_deprecated(reason:str | None) -> strPrint a deprecation reason.
func
src.graphql.utilities.print_schema.print_description(def_:GraphQLArgument | GraphQLDirective | GraphQLEnumValue | GraphQLNamedType | GraphQLSchema, indentation:str='', first_in_block:bool=True) -> strPrint a description.
func
src.graphql.utilities.print_schema.print_directive(directive:GraphQLDirective) -> strPrint a GraphQL directive.
func
src.graphql.utilities.print_schema.print_enum(type_:GraphQLEnumType) -> strPrint a GraphQL enum type.
func
src.graphql.utilities.print_schema.print_fields(type_:GraphQLObjectType | GraphQLInterfaceType) -> strPrint the fields of a GraphQL object or interface type.
func
src.graphql.utilities.print_schema.print_input_object(type_:GraphQLInputObjectType) -> strPrint a GraphQL input object type.
func
src.graphql.utilities.print_schema.print_input_value(name:str, arg:GraphQLArgument) -> strPrint an input value.
func
src.graphql.utilities.print_schema.print_interface(type_:GraphQLInterfaceType) -> strPrint a GraphQL interface type.
func
src.graphql.utilities.print_schema.print_introspection_schema(schema:GraphQLSchema) -> strPrint the built-in introspection schema in SDL format.
func
src.graphql.utilities.print_schema.print_object(type_:GraphQLObjectType) -> strPrint a GraphQL object type.
func
src.graphql.utilities.print_schema.print_scalar(type_:GraphQLScalarType) -> strPrint a GraphQL scalar type.
func
src.graphql.utilities.print_schema.print_schema(schema:GraphQLSchema) -> strPrint the given GraphQL schema in SDL format.
func
src.graphql.utilities.print_schema.print_schema_definition(schema:GraphQLSchema) -> str | NonePrint GraphQL schema definitions.
func
src.graphql.utilities.print_schema.print_specified_by_url(scalar:GraphQLScalarType) -> strPrint a specification URL.
func
src.graphql.utilities.print_schema.print_type(type_:GraphQLNamedType) -> strPrint a named GraphQL type.
func
src.graphql.utilities.print_schema.print_union(type_:GraphQLUnionType) -> strPrint a GraphQL union type.
class
src.graphql.utilities.resolve_schema_coordinate.ResolvedDirectiveA directive resolved from a schema coordinate.
class
src.graphql.utilities.resolve_schema_coordinate.ResolvedFieldA field resolved from a schema coordinate.
class
src.graphql.utilities.resolve_schema_coordinate.ResolvedNamedTypeA named type resolved from a schema coordinate.
func
src.graphql.utilities.resolve_schema_coordinate.resolve_argument_coordinate(schema:GraphQLSchema, schema_coordinate:ArgumentCoordinateNode) -> ResolvedFieldArgument | NoneArgumentCoordinate : Name .
func
src.graphql.utilities.resolve_schema_coordinate.resolve_directive_coordinate(schema:GraphQLSchema, schema_coordinate:DirectiveCoordinateNode) -> ResolvedDirective | NoneDirectiveCoordinate : @ Name
func
src.graphql.utilities.resolve_schema_coordinate.resolve_type_coordinate(schema:GraphQLSchema, schema_coordinate:TypeCoordinateNode) -> ResolvedNamedType | NoneTypeCoordinate : Name
func
src.graphql.utilities.separate_operations.collect_transitive_dependencies(collected:set[str], dep_graph:DepGraph, from_name:str) -> NoneCollect transitive dependencies.
func
src.graphql.utilities.separate_operations.separate_operations(document_ast:DocumentNode) -> dict[str, DocumentNode]Separate operations in a given AST document.
func
src.graphql.utilities.sort_value_node.sort_value_node(value_node:ValueNode) -> ValueNodeSort ValueNode.
func
src.graphql.utilities.strip_ignored_characters.strip_ignored_characters(source:str | Source) -> strStrip characters that are ignored anyway.
func
src.graphql.utilities.type_comparators.is_equal_type(type_a:GraphQLType, type_b:GraphQLType) -> boolCheck whether two types are equal.
class
src.graphql.utilities.type_info.TypeInfoUtility class for keeping track of type definitions.
class
src.graphql.utilities.type_info.TypeInfoVisitorA visitor which maintains a provided TypeInfo.
class
src.graphql.utilities.validate_input_value.ValidationContextContext for validating an input literal.
class
src.graphql.validation.rules.ASTValidationRuleVisitor for validation of an AST.
method
src.graphql.validation.rules.ASTValidationRule.report_error(error:GraphQLError) -> NoneReport a GraphQL error.
class
src.graphql.validation.rules.SDLValidationRuleVisitor for validation of an SDL AST.
class
src.graphql.validation.rules.ValidationRuleVisitor for validation using a GraphQL schema.
func
src.graphql.validation.rules.fields_on_correct_type.get_suggested_field_names(type_:GraphQLOutputType, field_name:str) -> list[str]Get a list of suggested field names.
func
src.graphql.validation.rules.fields_on_correct_type.get_suggested_type_names(schema:GraphQLSchema, type_:GraphQLOutputType, field_name:str) -> list[str]Get a list of suggested type names.
class
src.graphql.validation.rules.max_introspection_depth_rule.MaxIntrospectionDepthRuleChecks maximum introspection depth
func
src.graphql.validation.validate.assert_valid_sdl(document_ast:DocumentNode) -> NoneAssert document is valid SDL.
func
src.graphql.validation.validate.assert_valid_sdl_extension(document_ast:DocumentNode, schema:GraphQLSchema) -> NoneAssert document is a valid SDL extension.
func
src.graphql.validation.validate.validate_sdl(document_ast:DocumentNode, schema_to_extend:GraphQLSchema | None=None, rules:Collection[type[ASTValidationRule]] | None=None) -> list[GraphQLError]Validate an SDL document.
class
src.graphql.validation.validation_context.VariableUsageVariable usage
この情報について
掲載しているシグネチャは graphql-python/graphql-core の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。