summaryrefslogtreecommitdiff
path: root/src/Language/GraphQL/Error.hs
AgeCommit message (Collapse)Author
2022-12-24Fix GHC 9.2 warnings and deprecationsEugen Wissner
- Fix GHC 9.2 warnings - Convert comments to proper deprecations
2022-06-30Document usage of the json flagEugen Wissner
2022-03-31Remove deprecated Error functionsEugen Wissner
2021-09-05Deprecate unused functions from the old executorEugen Wissner
2021-09-03Replace the old executorEugen Wissner
2021-05-10Deprecate internal error generation functionsEugen Wissner
The functions generating errors in the executor should be changed anyway when we provide better error messages from the executor, with the error location and response path. So public definitions of these functions are deprecated now and they are replaced by more generic functions in the executor code.
2021-04-14Remove unused OverloadedStrings pragmasEugen Wissner
2020-10-07Collect types once the schema is createdEugen Wissner
2020-09-16Move path to the execution errorEugen Wissner
Since it isn't possible to get a path during validation, without executing the query.
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-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-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-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-02-20Update to Stack 15.xEugen Wissner
2019-09-20Fix haddoc warningsEugen Wissner
Fix #14.
2019-07-23Add singleError utility functionv0.4.0.0Eugen Wissner
2019-07-19Report parse errors with line and column numbersEugen Wissner
2019-07-14Make all exports explicitEugen Wissner
2019-07-07Change the main namespace to Language.GraphQLEugen Wissner