summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-03-03When argument is not found return nullDanny Navarro
The relevant test was restored too.
2017-03-03Fix wrong scientific exponent when parsingDanny Navarro
2017-03-01Implement type instrospection testsDanny Navarro
The main intention with this commit is to show a poor's man way to support type instrospection.
2017-03-01GardenDanny Navarro
2017-03-01Make alternate Schema functions work with AST.CoreDanny Navarro
2017-03-01Merge pull request #20 from Lupino/masterDanny Navarro
2017-02-28Use builtin scientific `toBoundInteger` to check for Int32 boundsDanny Navarro
2017-02-28Merge branch 'core'Danny Navarro
This introduces a distinction between a Full and a Core AST. Fragments and variables are replaced when transforming from Full to Core.
2017-02-24Simplify fragment substitutionDanny Navarro
2017-02-23Add basic Fragment SupportDanny Navarro
Only field names are supported for now.
2017-02-23Enable Monad for array and object resolverLupino
When I use facebook/haxl, I can not find any way to the sub resolver. so I add Monad resolver to support it.
2017-02-13Fix parsing of Named TypesDanny Navarro
2017-02-13Support variables in AST transformationDanny Navarro
2017-02-10Wrap executed result in "data" objectDanny Navarro
2017-02-10Initial implementation of AST.Full -> AST.CoreDanny Navarro
This focused mainly on fragments.
2017-02-03Make operation name optionalDanny Navarro
2017-02-02Introduce Tranform moduleDanny Navarro
In the Transform module the Full AST will converted to Core AST. This commit also includes a partial implementation of Fragment replacement.
2017-01-30Define Schema using Core ASTDanny Navarro
Also, temporarily remove error reporting to simplify execution. This should be restored once the new execution model is nailed.
2017-01-29Update .gitignoreDanny Navarro
2017-01-28Merge pull request #19 from jasonzoladz/masterDanny Navarro
Fix Int32 bounds checking in Value parser.
2017-01-28Split AST in 2Danny Navarro
One AST is meant to be a target parser and tries to adhere as much as possible to the spec. The other is a simplified version of that AST meant for execution. Also newtypes have been replaced by type synonyms and NonEmpty lists are being used where it makes sense.
2017-01-28Fix Int32 bounds checking in Value parser.jasonzoladz
2017-01-26Add Graphql Core ASTDanny Navarro
2017-01-26Remove Type Definition supportDanny Navarro
2016-12-18Tokenize number parserDanny Navarro
The essential change hidden behind the code golfing is using the `tok` combinator. This was making fail the Kitchen Sink test.
2016-12-18Add homePlanet to test schemaDanny Navarro
2016-12-18Include GHC-8.0.1 in travis buildDanny Navarro
2016-12-12Merge pull request #16 from teh/masterDanny Navarro
Parse number as scientific and interpret meaning separately.
2016-12-09Parse number as scientific and interpret meaning separately.Tom Hunger
The current parser will fail parsing floats because it parses an int, and then stumbles on the dot. To fix I interpret the value with the scientific library which already is a dependency through attoparsec, so we're not introducing any extra downloads or compiling. I think this is still subtly wrong because "10.0" will be parsed as ValueInt, but because input argument ints are allowed to be coerced into doubles (according to the spec) this is probably acceptable.
2016-11-27Drop support for GHC-7.8.4Danny Navarro
2016-07-11Merge pull request #11 from pweaver/starwars_testsDanny Navarro
Remaining Starwars Tests
2016-07-09add pweaver to contributorsPweaver (Paul Weaver)
2016-07-08add tests for errors in queries for queries in starwars testsPweaver (Paul Weaver)
2016-07-08adds __typename tests to starwars testfilePweaver (Paul Weaver)
2016-07-08adds the starwars tests for fragmentsPweaver (Paul Weaver)
Also refactors some deplicate objects into a where clause
2016-03-17Add @Tritlo and @solrun as authorsDanny Navarro
2016-03-15Merge branch 'all-improvements'Danny Navarro
This adds general API documentation, a tutorial and error handling.
2016-03-14Added documentation of functions and modules and included tutorial.lhs.solrun
2016-03-14Added exception handling with Alternative constraint according to spec.Matthías Páll Gissurarson
2016-03-14Added a tutorial, based on graphql-js and servant documentation.Matthías Páll Gissurarson
2016-02-22Remove `StringValue` typeDanny Navarro
2016-02-19Simplify Schema definition APIDanny Navarro
Now there is one `Resolver` type and the `Output` and `Scalar` types have been removed. This should be closer to the final Schema definition API.
2016-02-18Overhaul Schema DSLDanny Navarro
Aside of making the definition of Schemas easier, it takes care of issues like nested aliases which previously wasn't possible. The naming of the DSL functions is still provisional.
2016-02-17GardenDanny Navarro
2016-02-17Initial support for aliases in `execute`Danny Navarro
2016-02-17Add remaining tests with variables in argumentsDanny Navarro
The test with invalid ID is commented out until proper exception handling is implemented.
2016-02-15Initial support for variable substitutionDanny Navarro
The correspondent end-to-end test has been ported. The variable definition still needs to be checked.
2016-02-15Clean up StarWars test queriesDanny Navarro
2016-02-12Split StarWars tests in different modulesDanny Navarro
2016-02-12Handle Field arguments in Schema definitionDanny Navarro
The `Schema` has been overhauled to make `Output` monomorphic. Traversing the `GraphQL` document is handled implicitly while defining the `Schema`. The 4th end-to-end test from `graphql-js` has been ported.