summaryrefslogtreecommitdiff
path: root/src/Language/GraphQL/AST
AgeCommit message (Collapse)Author
2020-09-18Validate directives are unique per locationEugen Wissner
2020-09-15Use Seq as base monad in the validatorEugen Wissner
It is more natural to implement the logic: try to apply each rule to each node.
2020-09-09Validate all fragments are usedEugen Wissner
2020-09-07Validate fragments on composite typesEugen Wissner
2020-09-05Validate fragment spread type existenceEugen Wissner
2020-08-31Validate fragment spread target existenceEugen Wissner
2020-08-26Validate anonymous operation definitionsEugen Wissner
2020-08-25Validate single root field in subscriptionsEugen Wissner
2020-08-22Remove encoder test based on old external filesEugen Wissner
2020-07-20Draft the Validation APIEugen Wissner
2020-07-11Parse subscriptionsEugen Wissner
2020-07-10Label parsers with help infoEugen Wissner
Fixes #36.
2020-07-09Parse comments in the front of definitionsEugen Wissner
2020-07-08Return parser error location in a listEugen Wissner
An error can have multiple locations which are returned in a listt with key "locations".
2020-06-30Move Core module out of ASTEugen Wissner
2020-06-07Add description to the enum type valuesEugen Wissner
2020-05-29Define resolvers on type fieldsEugen Wissner
Returning resolvers from other resolvers isn't supported anymore. Since we have a type system now, we define the resolvers in the object type fields and pass an object with the previous result to them.
2020-05-24Check pointEugen Wissner
2020-05-22Reject variables as default valuesEugen Wissner
2020-05-21Coerce variable valuesEugen Wissner
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-14Document schema ASTEugen Wissner
Fixes #8.
2020-01-28Try all extension parsersEugen Wissner
2020-01-26Parse type extensionsEugen Wissner
Signed-off-by: Eugen Wissner <belka@caraus.de>
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
2020-01-13Reduce usage of the opt parserEugen Wissner
opt directives = some directive All other occurrences of opt parse an optional list withing some delimiters (braces, parens).
2020-01-12Replace Parser.manyNE with NonEmpty.someEugen Wissner
2020-01-01Rewrite argument list to argument mapEugen Wissner
2019-12-28Move AST to AST.DocumentEugen Wissner
2019-12-27Define schema AST.Eugen Wissner
Large parts of the schema aren't exported publically. They will be made public during writing the parser. Fixes #6.
2019-12-26Add definition moduleEugen 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-07Move Transform to Language.GraphQL.ExecuteEugen Wissner
Language.GraphQL.AST.Transform is an internal module. Even though it works with the AST, it is a part of the execution process, it translates the original parser tree into a simpler one, so the executor has less work to do. Language.GraphQL.AST should contain only the parser and be independent from other packages, so it can be used on its own.
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-23Add a reader instance to the resolversEugen Wissner
The Reader contains a Name/Value hashmap, which will contain resolver arguments.
2019-11-22Try type parsers in a different orderEugen Wissner