1
0

__init__.py 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. """GraphQL-core
  2. The primary :mod:`graphql` package includes everything you need to define a GraphQL
  3. schema and fulfill GraphQL requests.
  4. GraphQL-core provides a reference implementation for the GraphQL specification
  5. but is also a useful utility for operating on GraphQL files and building sophisticated
  6. tools.
  7. This top-level package exports a general purpose function for fulfilling all steps
  8. of the GraphQL specification in a single operation, but also includes utilities
  9. for every part of the GraphQL specification:
  10. - Parsing the GraphQL language.
  11. - Building a GraphQL type schema.
  12. - Validating a GraphQL request against a type schema.
  13. - Executing a GraphQL request against a type schema.
  14. This also includes utility functions for operating on GraphQL types and GraphQL
  15. documents to facilitate building tools.
  16. You may also import from each sub-package directly. For example, the following two
  17. import statements are equivalent::
  18. from graphql import parse
  19. from graphql.language import parse
  20. The sub-packages of GraphQL-core 3 are:
  21. - :mod:`graphql.language`: Parse and operate on the GraphQL language.
  22. - :mod:`graphql.type`: Define GraphQL types and schema.
  23. - :mod:`graphql.validation`: The Validation phase of fulfilling a GraphQL result.
  24. - :mod:`graphql.execution`: The Execution phase of fulfilling a GraphQL request.
  25. - :mod:`graphql.error`: Creating and formatting GraphQL errors.
  26. - :mod:`graphql.utilities`:
  27. Common useful computations upon the GraphQL language and type objects.
  28. """
  29. # The GraphQL-core 3 and GraphQL.js version info.
  30. from .version import version, version_info, version_js, version_info_js
  31. # Utilities for compatibility with the Python language.
  32. from .pyutils import Undefined, UndefinedType
  33. # Create, format, and print GraphQL errors.
  34. from .error import (
  35. GraphQLError,
  36. GraphQLErrorExtensions,
  37. GraphQLFormattedError,
  38. GraphQLSyntaxError,
  39. located_error,
  40. )
  41. # Parse and operate on GraphQL language source files.
  42. from .language import (
  43. Source,
  44. get_location,
  45. # Print source location
  46. print_location,
  47. print_source_location,
  48. # Lex
  49. Lexer,
  50. TokenKind,
  51. # Parse
  52. parse,
  53. parse_value,
  54. parse_const_value,
  55. parse_type,
  56. # Print
  57. print_ast,
  58. # Visit
  59. visit,
  60. ParallelVisitor,
  61. Visitor,
  62. VisitorAction,
  63. VisitorKeyMap,
  64. BREAK,
  65. SKIP,
  66. REMOVE,
  67. IDLE,
  68. DirectiveLocation,
  69. # Predicates
  70. is_definition_node,
  71. is_executable_definition_node,
  72. is_selection_node,
  73. is_value_node,
  74. is_const_value_node,
  75. is_type_node,
  76. is_type_system_definition_node,
  77. is_type_definition_node,
  78. is_type_system_extension_node,
  79. is_type_extension_node,
  80. # Types
  81. SourceLocation,
  82. Location,
  83. Token,
  84. # AST nodes
  85. Node,
  86. # Each kind of AST node
  87. NameNode,
  88. DocumentNode,
  89. DefinitionNode,
  90. ExecutableDefinitionNode,
  91. OperationDefinitionNode,
  92. OperationType,
  93. VariableDefinitionNode,
  94. VariableNode,
  95. SelectionSetNode,
  96. SelectionNode,
  97. FieldNode,
  98. ArgumentNode,
  99. ConstArgumentNode,
  100. FragmentSpreadNode,
  101. InlineFragmentNode,
  102. FragmentDefinitionNode,
  103. ValueNode,
  104. ConstValueNode,
  105. IntValueNode,
  106. FloatValueNode,
  107. StringValueNode,
  108. BooleanValueNode,
  109. NullValueNode,
  110. EnumValueNode,
  111. ListValueNode,
  112. ConstListValueNode,
  113. ObjectValueNode,
  114. ConstObjectValueNode,
  115. ObjectFieldNode,
  116. ConstObjectFieldNode,
  117. DirectiveNode,
  118. ConstDirectiveNode,
  119. TypeNode,
  120. NamedTypeNode,
  121. ListTypeNode,
  122. NonNullTypeNode,
  123. TypeSystemDefinitionNode,
  124. SchemaDefinitionNode,
  125. OperationTypeDefinitionNode,
  126. TypeDefinitionNode,
  127. ScalarTypeDefinitionNode,
  128. ObjectTypeDefinitionNode,
  129. FieldDefinitionNode,
  130. InputValueDefinitionNode,
  131. InterfaceTypeDefinitionNode,
  132. UnionTypeDefinitionNode,
  133. EnumTypeDefinitionNode,
  134. EnumValueDefinitionNode,
  135. InputObjectTypeDefinitionNode,
  136. DirectiveDefinitionNode,
  137. TypeSystemExtensionNode,
  138. SchemaExtensionNode,
  139. TypeExtensionNode,
  140. ScalarTypeExtensionNode,
  141. ObjectTypeExtensionNode,
  142. InterfaceTypeExtensionNode,
  143. UnionTypeExtensionNode,
  144. EnumTypeExtensionNode,
  145. InputObjectTypeExtensionNode,
  146. )
  147. # Utilities for operating on GraphQL type schema and parsed sources.
  148. from .utilities import (
  149. # Produce the GraphQL query recommended for a full schema introspection.
  150. # Accepts optional IntrospectionOptions.
  151. get_introspection_query,
  152. IntrospectionQuery,
  153. # Get the target Operation from a Document.
  154. get_operation_ast,
  155. # Get the Type for the target Operation AST.
  156. get_operation_root_type,
  157. # Convert a GraphQLSchema to an IntrospectionQuery.
  158. introspection_from_schema,
  159. # Build a GraphQLSchema from an introspection result.
  160. build_client_schema,
  161. # Build a GraphQLSchema from a parsed GraphQL Schema language AST.
  162. build_ast_schema,
  163. # Build a GraphQLSchema from a GraphQL schema language document.
  164. build_schema,
  165. # Extend an existing GraphQLSchema from a parsed GraphQL Schema language AST.
  166. extend_schema,
  167. # Sort a GraphQLSchema.
  168. lexicographic_sort_schema,
  169. # Print a GraphQLSchema to GraphQL Schema language.
  170. print_schema,
  171. # Print a GraphQLType to GraphQL Schema language.
  172. print_type,
  173. # Prints the built-in introspection schema in the Schema Language format.
  174. print_introspection_schema,
  175. # Create a GraphQLType from a GraphQL language AST.
  176. type_from_ast,
  177. # Convert a language AST to a dictionary.
  178. ast_to_dict,
  179. # Create a Python value from a GraphQL language AST with a Type.
  180. value_from_ast,
  181. # Create a Python value from a GraphQL language AST without a Type.
  182. value_from_ast_untyped,
  183. # Create a GraphQL language AST from a Python value.
  184. ast_from_value,
  185. # A helper to use within recursive-descent visitors which need to be aware of the
  186. # GraphQL type system.
  187. TypeInfo,
  188. TypeInfoVisitor,
  189. # Coerce a Python value to a GraphQL type, or produce errors.
  190. coerce_input_value,
  191. # Concatenates multiple ASTs together.
  192. concat_ast,
  193. # Separate an AST into an AST per Operation.
  194. separate_operations,
  195. # Strip characters that are not significant to the validity or execution
  196. # of a GraphQL document.
  197. strip_ignored_characters,
  198. # Comparators for types
  199. is_equal_type,
  200. is_type_sub_type_of,
  201. do_types_overlap,
  202. # Assert a string is a valid GraphQL name.
  203. assert_valid_name,
  204. # Determine if a string is a valid GraphQL name.
  205. is_valid_name_error,
  206. # Compare two GraphQLSchemas and detect breaking changes.
  207. BreakingChange,
  208. BreakingChangeType,
  209. DangerousChange,
  210. DangerousChangeType,
  211. find_breaking_changes,
  212. find_dangerous_changes,
  213. )
  214. # Create and operate on GraphQL type definitions and schema.
  215. from .type import (
  216. # Definitions
  217. GraphQLSchema,
  218. GraphQLDirective,
  219. GraphQLScalarType,
  220. GraphQLObjectType,
  221. GraphQLInterfaceType,
  222. GraphQLUnionType,
  223. GraphQLEnumType,
  224. GraphQLInputObjectType,
  225. GraphQLList,
  226. GraphQLNonNull,
  227. # Standard GraphQL Scalars
  228. specified_scalar_types,
  229. GraphQLInt,
  230. GraphQLFloat,
  231. GraphQLString,
  232. GraphQLBoolean,
  233. GraphQLID,
  234. # Int boundaries constants
  235. GRAPHQL_MAX_INT,
  236. GRAPHQL_MIN_INT,
  237. # Built-in Directives defined by the Spec
  238. specified_directives,
  239. GraphQLIncludeDirective,
  240. GraphQLSkipDirective,
  241. GraphQLDeprecatedDirective,
  242. GraphQLSpecifiedByDirective,
  243. # "Enum" of Type Kinds
  244. TypeKind,
  245. # Constant Deprecation Reason
  246. DEFAULT_DEPRECATION_REASON,
  247. # GraphQL Types for introspection.
  248. introspection_types,
  249. # Meta-field definitions.
  250. SchemaMetaFieldDef,
  251. TypeMetaFieldDef,
  252. TypeNameMetaFieldDef,
  253. # Predicates
  254. is_schema,
  255. is_directive,
  256. is_type,
  257. is_scalar_type,
  258. is_object_type,
  259. is_interface_type,
  260. is_union_type,
  261. is_enum_type,
  262. is_input_object_type,
  263. is_list_type,
  264. is_non_null_type,
  265. is_input_type,
  266. is_output_type,
  267. is_leaf_type,
  268. is_composite_type,
  269. is_abstract_type,
  270. is_wrapping_type,
  271. is_nullable_type,
  272. is_named_type,
  273. is_required_argument,
  274. is_required_input_field,
  275. is_specified_scalar_type,
  276. is_introspection_type,
  277. is_specified_directive,
  278. # Assertions
  279. assert_schema,
  280. assert_directive,
  281. assert_type,
  282. assert_scalar_type,
  283. assert_object_type,
  284. assert_interface_type,
  285. assert_union_type,
  286. assert_enum_type,
  287. assert_input_object_type,
  288. assert_list_type,
  289. assert_non_null_type,
  290. assert_input_type,
  291. assert_output_type,
  292. assert_leaf_type,
  293. assert_composite_type,
  294. assert_abstract_type,
  295. assert_wrapping_type,
  296. assert_nullable_type,
  297. assert_named_type,
  298. # Un-modifiers
  299. get_nullable_type,
  300. get_named_type,
  301. # Thunk handling
  302. resolve_thunk,
  303. # Validate GraphQL schema.
  304. validate_schema,
  305. assert_valid_schema,
  306. # Uphold the spec rules about naming
  307. assert_name,
  308. assert_enum_value_name,
  309. # Types
  310. GraphQLType,
  311. GraphQLInputType,
  312. GraphQLOutputType,
  313. GraphQLLeafType,
  314. GraphQLCompositeType,
  315. GraphQLAbstractType,
  316. GraphQLWrappingType,
  317. GraphQLNullableType,
  318. GraphQLNamedType,
  319. GraphQLNamedInputType,
  320. GraphQLNamedOutputType,
  321. Thunk,
  322. ThunkCollection,
  323. ThunkMapping,
  324. GraphQLArgument,
  325. GraphQLArgumentMap,
  326. GraphQLEnumValue,
  327. GraphQLEnumValueMap,
  328. GraphQLField,
  329. GraphQLFieldMap,
  330. GraphQLFieldResolver,
  331. GraphQLInputField,
  332. GraphQLInputFieldMap,
  333. GraphQLScalarSerializer,
  334. GraphQLScalarValueParser,
  335. GraphQLScalarLiteralParser,
  336. GraphQLIsTypeOfFn,
  337. GraphQLResolveInfo,
  338. ResponsePath,
  339. GraphQLTypeResolver,
  340. # Keyword args
  341. GraphQLArgumentKwargs,
  342. GraphQLDirectiveKwargs,
  343. GraphQLEnumTypeKwargs,
  344. GraphQLEnumValueKwargs,
  345. GraphQLFieldKwargs,
  346. GraphQLInputFieldKwargs,
  347. GraphQLInputObjectTypeKwargs,
  348. GraphQLInterfaceTypeKwargs,
  349. GraphQLNamedTypeKwargs,
  350. GraphQLObjectTypeKwargs,
  351. GraphQLScalarTypeKwargs,
  352. GraphQLSchemaKwargs,
  353. GraphQLUnionTypeKwargs,
  354. )
  355. # Validate GraphQL queries.
  356. from .validation import (
  357. validate,
  358. ValidationContext,
  359. ValidationRule,
  360. ASTValidationRule,
  361. SDLValidationRule,
  362. # All validation rules in the GraphQL Specification.
  363. specified_rules,
  364. # Individual validation rules.
  365. ExecutableDefinitionsRule,
  366. FieldsOnCorrectTypeRule,
  367. FragmentsOnCompositeTypesRule,
  368. KnownArgumentNamesRule,
  369. KnownDirectivesRule,
  370. KnownFragmentNamesRule,
  371. KnownTypeNamesRule,
  372. LoneAnonymousOperationRule,
  373. NoFragmentCyclesRule,
  374. NoUndefinedVariablesRule,
  375. NoUnusedFragmentsRule,
  376. NoUnusedVariablesRule,
  377. OverlappingFieldsCanBeMergedRule,
  378. PossibleFragmentSpreadsRule,
  379. ProvidedRequiredArgumentsRule,
  380. ScalarLeafsRule,
  381. SingleFieldSubscriptionsRule,
  382. UniqueArgumentNamesRule,
  383. UniqueDirectivesPerLocationRule,
  384. UniqueFragmentNamesRule,
  385. UniqueInputFieldNamesRule,
  386. UniqueOperationNamesRule,
  387. UniqueVariableNamesRule,
  388. ValuesOfCorrectTypeRule,
  389. VariablesAreInputTypesRule,
  390. VariablesInAllowedPositionRule,
  391. # SDL-specific validation rules
  392. LoneSchemaDefinitionRule,
  393. UniqueOperationTypesRule,
  394. UniqueTypeNamesRule,
  395. UniqueEnumValueNamesRule,
  396. UniqueFieldDefinitionNamesRule,
  397. UniqueArgumentDefinitionNamesRule,
  398. UniqueDirectiveNamesRule,
  399. PossibleTypeExtensionsRule,
  400. # Custom validation rules
  401. NoDeprecatedCustomRule,
  402. NoSchemaIntrospectionCustomRule,
  403. )
  404. # Execute GraphQL documents.
  405. from .execution import (
  406. execute,
  407. execute_sync,
  408. default_field_resolver,
  409. default_type_resolver,
  410. get_argument_values,
  411. get_directive_values,
  412. get_variable_values,
  413. # Types
  414. ExecutionContext,
  415. ExecutionResult,
  416. FormattedExecutionResult,
  417. # Subscription
  418. subscribe,
  419. create_source_event_stream,
  420. MapAsyncIterator,
  421. # Middleware
  422. Middleware,
  423. MiddlewareManager,
  424. )
  425. # The primary entry point into fulfilling a GraphQL request.
  426. from .graphql import graphql, graphql_sync
  427. INVALID = Undefined # deprecated alias
  428. # The GraphQL-core version info.
  429. __version__ = version
  430. __version_info__ = version_info
  431. # The GraphQL.js version info.
  432. __version_js__ = version_js
  433. __version_info_js__ = version_info_js
  434. __all__ = [
  435. "version",
  436. "version_info",
  437. "version_js",
  438. "version_info_js",
  439. "graphql",
  440. "graphql_sync",
  441. "GraphQLSchema",
  442. "GraphQLDirective",
  443. "GraphQLScalarType",
  444. "GraphQLObjectType",
  445. "GraphQLInterfaceType",
  446. "GraphQLUnionType",
  447. "GraphQLEnumType",
  448. "GraphQLInputObjectType",
  449. "GraphQLList",
  450. "GraphQLNonNull",
  451. "specified_scalar_types",
  452. "GraphQLInt",
  453. "GraphQLFloat",
  454. "GraphQLString",
  455. "GraphQLBoolean",
  456. "GraphQLID",
  457. "GRAPHQL_MAX_INT",
  458. "GRAPHQL_MIN_INT",
  459. "specified_directives",
  460. "GraphQLIncludeDirective",
  461. "GraphQLSkipDirective",
  462. "GraphQLDeprecatedDirective",
  463. "GraphQLSpecifiedByDirective",
  464. "TypeKind",
  465. "DEFAULT_DEPRECATION_REASON",
  466. "introspection_types",
  467. "SchemaMetaFieldDef",
  468. "TypeMetaFieldDef",
  469. "TypeNameMetaFieldDef",
  470. "is_schema",
  471. "is_directive",
  472. "is_type",
  473. "is_scalar_type",
  474. "is_object_type",
  475. "is_interface_type",
  476. "is_union_type",
  477. "is_enum_type",
  478. "is_input_object_type",
  479. "is_list_type",
  480. "is_non_null_type",
  481. "is_input_type",
  482. "is_output_type",
  483. "is_leaf_type",
  484. "is_composite_type",
  485. "is_abstract_type",
  486. "is_wrapping_type",
  487. "is_nullable_type",
  488. "is_named_type",
  489. "is_required_argument",
  490. "is_required_input_field",
  491. "is_specified_scalar_type",
  492. "is_introspection_type",
  493. "is_specified_directive",
  494. "assert_schema",
  495. "assert_directive",
  496. "assert_type",
  497. "assert_scalar_type",
  498. "assert_object_type",
  499. "assert_interface_type",
  500. "assert_union_type",
  501. "assert_enum_type",
  502. "assert_input_object_type",
  503. "assert_list_type",
  504. "assert_non_null_type",
  505. "assert_input_type",
  506. "assert_output_type",
  507. "assert_leaf_type",
  508. "assert_composite_type",
  509. "assert_abstract_type",
  510. "assert_wrapping_type",
  511. "assert_nullable_type",
  512. "assert_named_type",
  513. "get_nullable_type",
  514. "get_named_type",
  515. "resolve_thunk",
  516. "validate_schema",
  517. "assert_valid_schema",
  518. "assert_name",
  519. "assert_enum_value_name",
  520. "GraphQLType",
  521. "GraphQLInputType",
  522. "GraphQLOutputType",
  523. "GraphQLLeafType",
  524. "GraphQLCompositeType",
  525. "GraphQLAbstractType",
  526. "GraphQLWrappingType",
  527. "GraphQLNullableType",
  528. "GraphQLNamedType",
  529. "GraphQLNamedInputType",
  530. "GraphQLNamedOutputType",
  531. "Thunk",
  532. "ThunkCollection",
  533. "ThunkMapping",
  534. "GraphQLArgument",
  535. "GraphQLArgumentMap",
  536. "GraphQLEnumValue",
  537. "GraphQLEnumValueMap",
  538. "GraphQLField",
  539. "GraphQLFieldMap",
  540. "GraphQLFieldResolver",
  541. "GraphQLInputField",
  542. "GraphQLInputFieldMap",
  543. "GraphQLScalarSerializer",
  544. "GraphQLScalarValueParser",
  545. "GraphQLScalarLiteralParser",
  546. "GraphQLIsTypeOfFn",
  547. "GraphQLResolveInfo",
  548. "ResponsePath",
  549. "GraphQLTypeResolver",
  550. "GraphQLArgumentKwargs",
  551. "GraphQLDirectiveKwargs",
  552. "GraphQLEnumTypeKwargs",
  553. "GraphQLEnumValueKwargs",
  554. "GraphQLFieldKwargs",
  555. "GraphQLInputFieldKwargs",
  556. "GraphQLInputObjectTypeKwargs",
  557. "GraphQLInterfaceTypeKwargs",
  558. "GraphQLNamedTypeKwargs",
  559. "GraphQLObjectTypeKwargs",
  560. "GraphQLScalarTypeKwargs",
  561. "GraphQLSchemaKwargs",
  562. "GraphQLUnionTypeKwargs",
  563. "Source",
  564. "get_location",
  565. "print_location",
  566. "print_source_location",
  567. "Lexer",
  568. "TokenKind",
  569. "parse",
  570. "parse_value",
  571. "parse_const_value",
  572. "parse_type",
  573. "print_ast",
  574. "visit",
  575. "ParallelVisitor",
  576. "TypeInfoVisitor",
  577. "Visitor",
  578. "VisitorAction",
  579. "VisitorKeyMap",
  580. "BREAK",
  581. "SKIP",
  582. "REMOVE",
  583. "IDLE",
  584. "DirectiveLocation",
  585. "is_definition_node",
  586. "is_executable_definition_node",
  587. "is_selection_node",
  588. "is_value_node",
  589. "is_const_value_node",
  590. "is_type_node",
  591. "is_type_system_definition_node",
  592. "is_type_definition_node",
  593. "is_type_system_extension_node",
  594. "is_type_extension_node",
  595. "SourceLocation",
  596. "Location",
  597. "Token",
  598. "Node",
  599. "NameNode",
  600. "DocumentNode",
  601. "DefinitionNode",
  602. "ExecutableDefinitionNode",
  603. "OperationDefinitionNode",
  604. "OperationType",
  605. "VariableDefinitionNode",
  606. "VariableNode",
  607. "SelectionSetNode",
  608. "SelectionNode",
  609. "FieldNode",
  610. "ArgumentNode",
  611. "ConstArgumentNode",
  612. "FragmentSpreadNode",
  613. "InlineFragmentNode",
  614. "FragmentDefinitionNode",
  615. "ValueNode",
  616. "ConstValueNode",
  617. "IntValueNode",
  618. "FloatValueNode",
  619. "StringValueNode",
  620. "BooleanValueNode",
  621. "NullValueNode",
  622. "EnumValueNode",
  623. "ListValueNode",
  624. "ConstListValueNode",
  625. "ObjectValueNode",
  626. "ConstObjectValueNode",
  627. "ObjectFieldNode",
  628. "ConstObjectFieldNode",
  629. "DirectiveNode",
  630. "ConstDirectiveNode",
  631. "TypeNode",
  632. "NamedTypeNode",
  633. "ListTypeNode",
  634. "NonNullTypeNode",
  635. "TypeSystemDefinitionNode",
  636. "SchemaDefinitionNode",
  637. "OperationTypeDefinitionNode",
  638. "TypeDefinitionNode",
  639. "ScalarTypeDefinitionNode",
  640. "ObjectTypeDefinitionNode",
  641. "FieldDefinitionNode",
  642. "InputValueDefinitionNode",
  643. "InterfaceTypeDefinitionNode",
  644. "UnionTypeDefinitionNode",
  645. "EnumTypeDefinitionNode",
  646. "EnumValueDefinitionNode",
  647. "InputObjectTypeDefinitionNode",
  648. "DirectiveDefinitionNode",
  649. "TypeSystemExtensionNode",
  650. "SchemaExtensionNode",
  651. "TypeExtensionNode",
  652. "ScalarTypeExtensionNode",
  653. "ObjectTypeExtensionNode",
  654. "InterfaceTypeExtensionNode",
  655. "UnionTypeExtensionNode",
  656. "EnumTypeExtensionNode",
  657. "InputObjectTypeExtensionNode",
  658. "execute",
  659. "execute_sync",
  660. "default_field_resolver",
  661. "default_type_resolver",
  662. "get_argument_values",
  663. "get_directive_values",
  664. "get_variable_values",
  665. "ExecutionContext",
  666. "ExecutionResult",
  667. "FormattedExecutionResult",
  668. "Middleware",
  669. "MiddlewareManager",
  670. "subscribe",
  671. "create_source_event_stream",
  672. "MapAsyncIterator",
  673. "validate",
  674. "ValidationContext",
  675. "ValidationRule",
  676. "ASTValidationRule",
  677. "SDLValidationRule",
  678. "specified_rules",
  679. "ExecutableDefinitionsRule",
  680. "FieldsOnCorrectTypeRule",
  681. "FragmentsOnCompositeTypesRule",
  682. "KnownArgumentNamesRule",
  683. "KnownDirectivesRule",
  684. "KnownFragmentNamesRule",
  685. "KnownTypeNamesRule",
  686. "LoneAnonymousOperationRule",
  687. "NoFragmentCyclesRule",
  688. "NoUndefinedVariablesRule",
  689. "NoUnusedFragmentsRule",
  690. "NoUnusedVariablesRule",
  691. "OverlappingFieldsCanBeMergedRule",
  692. "PossibleFragmentSpreadsRule",
  693. "ProvidedRequiredArgumentsRule",
  694. "ScalarLeafsRule",
  695. "SingleFieldSubscriptionsRule",
  696. "UniqueArgumentNamesRule",
  697. "UniqueDirectivesPerLocationRule",
  698. "UniqueFragmentNamesRule",
  699. "UniqueInputFieldNamesRule",
  700. "UniqueOperationNamesRule",
  701. "UniqueVariableNamesRule",
  702. "ValuesOfCorrectTypeRule",
  703. "VariablesAreInputTypesRule",
  704. "VariablesInAllowedPositionRule",
  705. "LoneSchemaDefinitionRule",
  706. "UniqueOperationTypesRule",
  707. "UniqueTypeNamesRule",
  708. "UniqueEnumValueNamesRule",
  709. "UniqueFieldDefinitionNamesRule",
  710. "UniqueArgumentDefinitionNamesRule",
  711. "UniqueDirectiveNamesRule",
  712. "PossibleTypeExtensionsRule",
  713. "NoDeprecatedCustomRule",
  714. "NoSchemaIntrospectionCustomRule",
  715. "GraphQLError",
  716. "GraphQLErrorExtensions",
  717. "GraphQLFormattedError",
  718. "GraphQLSyntaxError",
  719. "located_error",
  720. "get_introspection_query",
  721. "IntrospectionQuery",
  722. "get_operation_ast",
  723. "get_operation_root_type",
  724. "introspection_from_schema",
  725. "build_client_schema",
  726. "build_ast_schema",
  727. "build_schema",
  728. "extend_schema",
  729. "lexicographic_sort_schema",
  730. "print_schema",
  731. "print_type",
  732. "print_introspection_schema",
  733. "type_from_ast",
  734. "value_from_ast",
  735. "value_from_ast_untyped",
  736. "ast_from_value",
  737. "ast_to_dict",
  738. "TypeInfo",
  739. "coerce_input_value",
  740. "concat_ast",
  741. "separate_operations",
  742. "strip_ignored_characters",
  743. "is_equal_type",
  744. "is_type_sub_type_of",
  745. "do_types_overlap",
  746. "assert_valid_name",
  747. "is_valid_name_error",
  748. "find_breaking_changes",
  749. "find_dangerous_changes",
  750. "BreakingChange",
  751. "BreakingChangeType",
  752. "DangerousChange",
  753. "DangerousChangeType",
  754. "Undefined",
  755. "UndefinedType",
  756. ]