-
0.11.0.0 Stable
released this
2020-11-07 09:05:47 +01:00 | 148 commits to master since this releaseChanged
AST.Document.Selectionwraps additional new types:Field,FragmentSpread
andInlineFragment. Thus validation rules can be defined more concise.AST.Document:ArgumentandDirectivecontain token location.AST.Document.Argumentcontains theValuewrapped in theNode.AST.Lexer.colonandAST.Lexer.atignore the result (it is always the- same).
Validate.Validation:Validation.ruleswas removed.Validation.rules
contained the list of rules, but the executed rules shouldn't know about other
rules.ruleswas a part of theValidationcontext to pass it easier
around, but since the rules are traversed once now and applied to all nodes in
the tree at the beginning, it isn't required anymore.Validate.Validation.Error:pathis removed since it isn't possible to get
the path without executing the query.Error.Error:pathadded. It is currently always empty.Validate.Validation.Pathwas moved toError.Type.Schema.Schema: data constructor is hidden, fields are accessible with
freestanding functions:query,mutation,subscription,directivesand
types.
Added
Validate.Validation.Ruleconstructors:SelectionRuleFragmentRuleFragmentSpreadRuleArgumentsRuleDirectivesRuleVariablesRuleFieldRule
Validate.Rules:fragmentsOnCompositeTypesRulefragmentSpreadTargetDefinedRulefragmentSpreadTypeExistenceRulenoUnusedFragmentsRulenoFragmentCyclesRuleuniqueArgumentNamesRuleuniqueDirectiveNamesRuleuniqueVariableNamesRulevariablesAreInputTypesRulenoUndefinedVariablesRulenoUndefinedVariablesRulenoUnusedVariablesRuleuniqueInputFieldNamesRulefieldsOnCorrectTypeRulescalarLeafsRuleknownArgumentNamesRuleknownDirectiveNamesRuledirectivesInValidLocationsRuleprovidedRequiredArgumentsRuleprovidedRequiredInputFieldsRule
AST.Document.Field.AST.Document.FragmentSpread.AST.Document.InlineFragment.AST.Document.Node.Type.In.Arguments: Type alias for an argument map.Type.Schema.DirectiveandType.Schema.Directivesare directive definition
representation.Type.Schema.schema: Schema constructor.
Fixed
- Collecting existing types from the schema considers subscriptions.
Removed
AST.Document.Alias. UseAST.Document.Nameinstead.
Downloads