summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2020-05-26Add Union and Interface type definitionsEugen Wissner
2020-05-25Split input/output types and values into 2 modulesEugen Wissner
2020-05-24Check pointEugen Wissner
2020-05-23Don't fail on invalid fragments and variablesEugen Wissner
2020-05-22Reject variables as default valuesEugen Wissner
2020-05-21Coerce variable valuesEugen Wissner
2020-05-14Add basic output object type supportEugen Wissner
2020-05-13Accept resolvers given by the user as isEugen Wissner
2020-05-10Separate Query and Mutation resolversEugen Wissner
Fixes #33 .
2020-04-10Don't encode controls as block stringsDmitrii Skurikhin
Fixes #39. String containing control sequences should be encoded as simple strings even if they contain newlines, since the block strings can contain only SourceCharacters.
2020-03-31encode null value as "null"Dmitrii Skurikhin
2020-02-20Update to Stack 15.xEugen Wissner
2020-02-01Replace MonadIO constraint with just MonadEugen Wissner
And make the tests use Identity instead of IO.
2020-01-28Try all extension parsersEugen Wissner
2020-01-25Parse schema extensionsEugen Wissner
2020-01-17Add "extend symbol" lexer to parse extensionsEugen Wissner
2020-01-15Parse complete TypeSystemDefinitionEugen Wissner
2020-01-13Parse enum and input object type definitionsEugen Wissner
2020-01-13Parse interface type definitionEugen Wissner
2020-01-13Parse union definitionsEugen Wissner
2020-01-13Parse ObjectDefinitionEugen Wissner
2020-01-13Parse SchemaDefinitionEugen Wissner
2019-12-31Retrieve resolver arguments from the readerEugen Wissner
2019-12-30Replace substitution function with a mapEugen Wissner
It makes using variables with queries more approachable, but some work still has to be done. - The type `Subs` should be renamed and moved out of `Schema`, together with `AST.Core.Value` probably. - Some kind of conversion should be possible from a user-defined input type T to the Value. So the final HashMap should have a type like `HashMap name a`, where a is an instance of a potential typeclass InputType.
2019-12-28Move AST to AST.DocumentEugen Wissner
2019-12-25Replace AST.Selection data constructorsEugen Wissner
2019-12-21Pretify multi-line string arguments as block stringsEugen Wissner
Fixes #10.
2019-12-20Encode Unicode. Fix #34Eugen Wissner
2019-12-19Escape non-source characters in the encoderEugen Wissner
2019-12-06Support directives (skip and include)Eugen Wissner
Fixes #24.
2019-12-02Consider __typename when evaluating fragmentsEugen Wissner
Fixes #30.
2019-11-28Fix strings not consuming spacesSam Nolan
Fixes #28
2019-11-21Fix failed parsing on multiple required argumentsSam Nolan
Fixes #25.
2019-11-14Fail on cyclic fragments, fix #22Eugen Wissner
2019-11-12Support nested fragments in any orderEugen Wissner
Fix #19.
2019-11-09Support nested fragmentsEugen Wissner
... without forward lookup.
2019-11-03Move related modules to Language.GraphQL.ASTEugen Wissner
Fixes #18. - `Language.GraphQL.Encoder` moved to `Language.GraphQL.AST.Encoder`. - `Language.GraphQL.Parser` moved to `Language.GraphQL.AST.Parser`. - `Language.GraphQL.Lexer` moved to `Language.GraphQL.AST.Lexer`. - All `Language.GraphQL.AST.Value` data constructor prefixes were removed. The module should be imported qualified. - All `Language.GraphQL.AST.Core.Value` data constructor prefixes were removed. The module should be imported qualified. - `Language.GraphQL.AST.Transform` is now isn't exposed publically anymore.
2019-10-19Handle top-level fragmentsEugen Wissner
Fixes #17.
2019-10-11Inline fragments without typeEugen Wissner
Fixes #11.
2019-10-08Support inline fragments on typesEugen Wissner
2019-09-27Introduce hspec-megaparsecEugen Wissner
Fixes #13.
2019-09-13Add pending inline fragment testsEugen Wissner
2019-09-06Fix #12Eugen Wissner
2019-09-01Deprecate enum, enumA, wrappedEnum, wrappedEnumAEugen Wissner
These functions are from Language.GraphQL.Schema. There are actually only two generic types in GraphQL: Scalars and objects. Enum is a scalar value. According to the specification enums may be serailized to strings. And in the current implementation they used untyped strings anyway, so there is no point to have differently named functions with the same implementation as their scalar counterparts.
2019-08-30Deprecate Language.GraphQL.Execute.SchemaEugen Wissner
It is not a schema (at least not a complete one), but a resolver list, and the resolvers should be provided by the user separately, because the schema can originate from a GraphQL document. Schema name should be free to provide a data type for the real schema later.
2019-08-13Escape special characters in the encoded stringsEugen Wissner
Fixes #2.
2019-08-05Make all encoder functions return lazy textEugen Wissner
2019-08-03Implement indentation in the encoderEugen Wissner
2019-08-02Put spaces between tokens in the pretty printerEugen Wissner
2019-07-31Introduce formatter type for the encoderEugen Wissner
... to distinguish between minified and pretty printing.