-
0.6.0.0 Stable
released this
2019-11-27 08:26:51 +01:00 | 258 commits to master since this releaseChanged
Language.GraphQL.Encodermoved toLanguage.GraphQL.AST.Encoder.Language.GraphQL.Parsermoved toLanguage.GraphQL.AST.Parser.Language.GraphQL.Lexermoved toLanguage.GraphQL.AST.Lexer.- All
Language.GraphQL.AST.Valuedata constructor prefixes were removed. The
module should be imported qualified. - All
Language.GraphQL.AST.Core.Valuedata constructor prefixes were removed.
The module should be imported qualified. Language.GraphQL.AST.Core.Objectis now just a HashMap.Language.GraphQL.AST.Transformis isn't exposed publically anymore.Language.GraphQL.Schema.resolveaccepts a selectionSeq(Data.Sequence)
instead of a list. Selections are stored as sequences internally as well.- Add a reader instance to the resolver's monad stack. The Reader contains
a Name/Value hashmap, which will contain resolver arguments.
Added
- Nested fragment support.
Fixed
- Consume ignored tokens after
$and!. I mistakenly assumed that
$variableis a single token, same asType!is a single token. This is not
the case, for exampleVariableis defined as$ Name, so these are two
tokens, therefore whitespaces and commas after$and!should be
consumed.
Improved
Language.GraphQL.AST.Parser.type_: Try type parsers in a variable
definition in a different order to avoid usingbut.
Removed
Language.GraphQL.AST.Arguments. Use[Language.GraphQL.AST.Argument]
instead.Language.GraphQL.AST.Directives. Use[Language.GraphQL.AST.Directives]
instead.Language.GraphQL.AST.VariableDefinitions. Use
[Language.GraphQL.AST.VariableDefinition]instead.Language.GraphQL.AST.FragmentName. UseLanguage.GraphQL.AST.Nameinstead.Language.GraphQL.Execute.Schema- It was a resolver list, not a schema.Language.GraphQL.Schema:enum,enumA,wrappedEnumandwrappedEnumA.
Usescalar,scalarA,wrappedScalarandwrappedScalarAinstead.
Downloads