Commit Graph

101 Commits

Author SHA1 Message Date
3ed7dcd401
Support hspec 2.11 2023-04-25 08:51:18 +02:00
408dfb4301
Update web links 2023-03-23 09:46:04 +01:00
3b69dac371
Release 1.2.0.0 2023-02-28 17:54:02 +01:00
2834360411
Remove JSON support in the core package 2023-02-26 09:43:43 +01:00
3b0da4f3d7
Fix resolvers returning a list in the reverse order 2023-02-24 17:14:43 +01:00
85d876e131
Update the 2023 copyright 2023-01-12 13:02:50 +01:00
2f9881bb21
Fix GHC 9.2 warnings and deprecations
- Fix GHC 9.2 warnings
- Convert comments to proper deprecations
2022-12-24 18:09:52 +01:00
2f19093803
Change execute' to shouldResolveTo helper method 2022-07-01 12:18:02 +02:00
0dac9701bc
Document usage of the json flag 2022-06-30 11:10:46 +02:00
0d25f482dd
Remove deprecated Error functions 2022-03-31 21:49:44 +02:00
a2401d563b
Allow version 2.0 of the text package. 2022-03-27 13:41:16 +02:00
Dmitrii Skurikhin
05e6aa4c95 add Arbitrary instances for AST.Document, add random arguments Parser test 2022-02-14 19:18:13 +01:00
Dmitrii Skurikhin
1f7bd92d11 fix index position in error path 2022-01-07 08:31:47 +01:00
16cbe3fc28
Release 1.0.2.0 2021-12-26 05:14:36 +01:00
f20cd02048
Loose bounds for compatibility with major versions 2021-12-25 07:42:10 +01:00
116aa1f6bb
Put JSON support behind a flag 2021-12-24 13:35:18 +01:00
0047a13bc0
Move JSON tests to the upcoming extra package 2021-11-22 07:22:28 +01:00
a044fc40d3
Release 1.0.1.0 2021-09-27 07:24:02 +02:00
e6dbf936af
Test with GHC 9.0 2021-09-24 08:49:37 +02:00
fbfbb3e73f
Remove raw-strings-qq 2021-09-23 08:23:38 +02:00
a3f18932bd
Add TH module with gql quasi quoter 2021-09-21 09:37:57 +02:00
7444895a58
Remove unused (and not exposed) Execute.Internal 2021-09-04 07:27:51 +02:00
b96d75f447
Replace the old executor 2021-09-03 22:47:49 +02:00
c7e586a125 Copy subscription code 2021-08-31 17:30:04 +02:00
dd996570c2 Add new executor module 2021-08-31 17:30:04 +02:00
dd6fdf69f6
Release 1.0.0.0 2021-07-04 09:57:17 +02:00
b580d1a988
Attach the field location to resolver exceptions 2021-06-27 13:42:58 +02:00
c601ccb4ad
Add dependency version ranges
Also remove stack.yaml since it isn't used anymore. and adding libraries
to the snapshots doesn't seem to be as easy as I hoped.
2021-06-26 07:35:18 +02:00
0d23df3da2
Provide an internal function to add errors
The old function, addErrMsg, takes only a string with an error
description, but more information is required for the execution errors:
locations and path. addErrMsg should be deprecated after the switching
to the new addError.
2021-05-09 12:42:02 +02:00
5654b78935
Traverse input object properties once 2021-04-12 07:09:39 +02:00
d6dda14cfd
Remove package.yaml
This reduces duplication between the modified cabal file and
package.yaml.
2021-04-07 10:12:40 +02:00
Ben Sinclair
cbccb9ed0b Add -Wall flags to graphql.cabal 2021-02-22 08:30:36 +11:00
c1a1b47aea Add OrderedMap prototype 2021-02-13 06:56:10 +01:00
2839b28590 Release 0.11.1.0 2021-02-07 08:10:46 +01:00
ed725ea514 Split validation rule tests in contexts 2021-02-06 12:54:27 +01:00
b27da54bf4 Provide custom Show instances for AST values 2021-02-04 08:12:12 +01:00
445f33dcf3 Release 0.11.0.0 2020-11-07 09:05:47 +01:00
7f0fb18716 Remove StarWars tests
Our own test suite is slowly getting sufficient.
2020-11-05 07:55:22 +01:00
afcf9aaa14 Write documentation out of the source tree
In a Wiki.
2020-11-02 08:24:48 +01:00
6e8d8a34a1 Reflect infrastructure and license changes 2020-10-30 07:06:36 +01:00
4b59da2fcb Release 0.10.0.0 2020-08-29 12:12:04 +02:00
7355533268 Validate single root field in subscriptions 2020-08-25 21:03:42 +02:00
54dbf1df16 Remove encoder test based on old external files 2020-08-22 06:39:52 +02:00
c60dd98fc5 Release 0.9.0.0 2020-07-24 21:58:49 +02:00
44d506d4b5 Draft the Validation API 2020-07-20 21:29:12 +02:00
b9d5b1fb1b Return a stream as well from graphql* functions 2020-07-19 07:36:06 +02:00
09135c581a Constrain base monad to MonadCatch
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-17 07:05:03 +02:00
ae2210f659 Support subscriptions
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-14 19:37:56 +02:00
b2d473de8d Export sum type for all GraphQL types 2020-07-06 19:10:34 +02:00
b5157e141e Check in .cabal 2020-07-03 07:00:37 +02:00