Rossen Stoyanchev
bbf152a32f
Deserialize errorType from extensions
...
The errorType field on GraphQLError is specific to GraphQL Java and when
serialized via GraphqlErrorHelper#toSpecification it becomes an
extension with the key "classification".
This commit ensures that we correctly deserialize back to errorType from
the "classification" extension but unfortunately that's limited to the
ErrorClassification enums that we know of.
2021-06-29 14:53:50 +01:00
Rossen Stoyanchev
5822f7d357
Add @Nullable to TestGraphQlError
2021-06-27 21:51:05 +01:00
Rossen Stoyanchev
0b71596aa5
Global error filter in GraphQlTester.Builder
...
See gh-66
2021-06-27 21:50:37 +01:00
Rossen Stoyanchev
5cd1e266b4
Parameterize GraphQlTester.RequestSpec
...
This ensures that the order in which inputs are provided, i.e. whether
taken from the base RequestSpec or the Web subtype doesn't matter.
See gh-64
2021-06-27 21:50:00 +01:00
Rossen Stoyanchev
56ccaf685b
GraphQlTester and WebGraphQlTester builders
...
Closes gh-66
2021-06-27 21:49:40 +01:00
Rossen Stoyanchev
4a6c718394
WebGraphQlTester supports HTTP header input
...
Closes gh-64
2021-06-26 17:48:30 +01:00
Rossen Stoyanchev
410948bde3
Undo more auto-formatting changes
2021-06-26 17:48:00 +01:00
Rossen Stoyanchev
de234c94c4
Decouple GraphQlTester from Web details
...
Closes gh-65
2021-06-26 05:16:35 +01:00
Brian Clozel
f8b2ad552f
Refactor project build
...
This commit refactors the project build to better share dependency
management definitions between modules.
This also upgrades the project to Spring Boot 2.5.0.
Closes gh-45
2021-06-02 15:45:51 +02:00
Brian Clozel
39937679e3
Apply Spring JavaFormat to Spring GraphQL Test
...
See gh-54
2021-06-02 14:30:00 +02:00
Brian Clozel
5d4c08a30b
Upgrade to Gradle 7.0.2
2021-05-18 17:53:08 +02:00
Rossen Stoyanchev
484fb932ef
Replace QL with Ql for consistency with Spring naming
2021-05-14 21:32:54 +01:00
Rossen Stoyanchev
44a034ef3d
Refine use of "query" in type and method names
...
Following revisions in the spec
https://github.com/graphql/graphql-spec/pull/777 , this commit applies
similar changes to type and method names where feasible.
The chief exception for now is the use of "query" for request input
since that is what it is called in the JSON for GraphQL over HTTP.
2021-05-12 09:50:03 +01:00
Rossen Stoyanchev
f93c46eee3
WebInterceptor contract revision
...
WebInterceptor now uses delegation, forming a chain of interceptors
followed by a GraphQLService at the end to invoke graphql.GraphQL.
Closes gh-49
2021-04-30 21:26:26 +01:00
Rossen Stoyanchev
00b01ee524
Rename package for GraphQLTester
2021-04-26 21:59:52 +01:00
Rossen Stoyanchev
403019521c
Rename spring-graphql-web to spring-graphql
...
Re-purpose spring-graphql-web to be more general than just web and add
org.springframework.web as a top-level package for web support.
2021-04-26 21:42:36 +01:00
Rossen Stoyanchev
1e619263d2
Reactor DataFetcher support
...
Closes gh-47
2021-04-26 10:03:53 +01:00
Rossen Stoyanchev
a57b78e521
Improve GraphQLTester error checking API
...
This commit introduces a dedicated ErrorSpec with the option to filter
out expected errors through Predicates.
2021-04-20 11:08:01 +01:00
Rossen Stoyanchev
efb72c7d13
Add tests for GraphQLTester
...
See gh-43
2021-04-15 13:00:52 +01:00
Rossen Stoyanchev
e22d3e8ea4
Add GraphQLTester
...
See gh-43
2021-04-15 13:00:20 +01:00