summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-08-29Release 0.10.0.0v0.10.0.0Eugen Wissner
2020-08-28Validate fragment name uniquenessEugen Wissner
2020-08-27Validate operation name uniquenessEugen Wissner
Fixes #52.
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-08-20Loose monad condition on test methodsEugen Wissner
2020-07-24Release 0.9.0.0Eugen Wissner
2020-07-20Draft the Validation APIEugen Wissner
2020-07-19Return a stream as well from graphql* functionsEugen Wissner
2020-07-17Constrain base monad to MonadCatchEugen Wissner
Let's try MonadThrow/MonadCatch. It looks nice at a first glance. The monad transformer stack contains only the ReaderT, less lifts are required. Exception subtyping is easier, the user can (and should) define custom error types and throw them. And it is still possible to use pure error handling, if someone doesn't like runtime exceptions or need to run a query in a pure environment. Fixes #42.
2020-07-15Respect subscriptions in the executorEugen Wissner
After the last commit there were a few places needed to be adjusted to support subscriptions. This is done and a test case is added. It is important to implement subscriptions now, because they require changes to the library API, and they are a big missing part to finish the executor. When the executor is finished, we can start to provide more stable API without breaking everything every release. Validation and introspection shouldn't require much changes to the API; AST would require some changes to report good errors after the validation - this is one thing I can think of. Fixes #5.
2020-07-14Support subscriptionsEugen Wissner
This is experimental support. The implementation is based on conduit and is boring. There is a new resolver data constructor that should create a source event stream. The executor receives the events, pipes them through the normal execution and puts them into the response stream which is returned to the user. - Tests are missing. - The executor should check field value resolver on subscription types. - The graphql function should probably return (Either ResponseEventStream Response), but I'm not sure about this. It will make the usage more complicated if no subscriptions are involved, but with the current API implementing subscriptions is more difficult than it should be.
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-07-06Export sum type for all GraphQL typesEugen Wissner
2020-07-05Handle errors using custom typesEugen Wissner
Fixes #32.
2020-07-03Check in .cabalEugen Wissner
2020-07-02Merge Trans and Type.Out modulesEugen Wissner
2020-06-30Move Core module out of ASTEugen Wissner
2020-06-29Combine Resolver and ActionT in ResolverTEugen Wissner
2020-06-26Remove semaphoreci.shEugen Wissner
2020-06-24Add a github actions workflowEugene Wissner
2020-06-20Release 0.8.0.0v0.8.0.0Eugen Wissner
2020-06-19Fix list input coercionEugen Wissner
2020-06-13Coerce resultEugen Wissner
Fixes #45.
2020-06-12Merge selection setsEugen Wissner
2020-06-10Skip unknown fieldsEugen Wissner
2020-06-09Add custom Eq instances to the typesEugen Wissner
2020-06-07Add description to the enum type valuesEugen Wissner
2020-06-06Coerce argument values properlyEugen Wissner
Fixes #44.
2020-06-03Resolve abstract typesEugen Wissner
Objects that can be a part of an union or interface should return __typename as string.
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-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-11Release 0.7.0.0v0.7.0.0Eugen Wissner
2020-05-10Separate Query and Mutation resolversEugen Wissner
Fixes #33 .
2020-04-12Write contrinbuting guidelinesEugen 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.