Commit Graph

109 Commits

Author SHA1 Message Date
rstoyanchev
681a0dcf4d Update documentation for RSocket
See gh-339
2022-03-28 09:15:38 +01:00
rstoyanchev
6584b88301 Shorten names of [Web|RSocket]GraphQlHandlerInterceptor
See gh-339
2022-03-28 09:07:11 +01:00
rstoyanchev
e71ea056bd Switch to icon without text
Closes gh-329
2022-03-22 18:47:38 +00:00
rstoyanchev
7e43223031 Polishing
See gh-280
2022-03-22 12:33:49 +00:00
rstoyanchev
dfff40085c Rename [Web|Socket]Interceptor
Use more qualified names [Web|Socket]GraphQlHandlerInterceptor to
differentiate with ClientGraphQlInterceptor and to align with other
types in the same package.
2022-03-21 09:04:52 +00:00
rstoyanchev
bb6280863a Update documentation for client interception
See gh-322
2022-03-21 04:27:06 +00:00
rstoyanchev
91e7f285fa Shorten GraphQlResponse[Field|Error] and rename GraphQlService
Rename GraphQlService to ExecutionGraphQlService following the renaming
of the request and response to ExecutionGraphQl[Request|Response].

See gh-332
2022-03-21 04:23:59 +00:00
rstoyanchev
67711f7331 Rename Web[Input|Output] to WebGraphQl[Request|Response]
See gh-332
2022-03-21 04:23:34 +00:00
rstoyanchev
cdd8b67fed Refine GraphQlResponseField getError()
Instead of a simple check, looking for an associated field error at or
above the field, this method now more focused on finding the reason for
a failure when the field has no value.

This allows performing a more thorough search including cases when the
field error is at, above, or even below (e.g. non-null nested field
that bubbled up), in the end falling back on request errors (e.g.
failed response without any field errors).

Also, rename ResponseField to GraphQlResponseField and move to a
top-level class.

See gh-10
2022-03-18 18:19:15 +00:00
rstoyanchev
827b70b71d Update GraphQlResponseError contract
Add a String path representation making it easy to filter errors by
path using String comparison, and refine nullability.

Take advantage of the String error paths to simplify internal filtering
of error fields.

See gh-10
2022-03-18 18:19:15 +00:00
Brian Clozel
b2b1e2d506 Document custom className extractor config
This commit documents how to configure a custom className Extractor
strategy in the `ClassNameTypeResolver`. This also adds an example of a
`GraphQlSourceBuilderCustomizer` in Spring Boot.

Closes gh-334
2022-03-17 17:23:38 +01:00
rstoyanchev
0967a6e7b7 Update documentation for GraphQlClient
See gh-10
2022-03-15 09:00:28 +00:00
Brian Clozel
77e9835d3a Fix typo in reference documentation 2022-03-10 11:11:31 +01:00
Brian Clozel
83d26467e7 Document why Jackson annotations are not used
This commit explains why Jackson annotations have no impact on the
serialization/deserialization process. Instead applications should
describe and coerce types using scalars.

Fixes gh-321
2022-03-10 11:10:09 +01:00
rstoyanchev
fb521e9b6f Add section on GraphQlClient to the reference docs
See gh-10
2022-03-10 09:48:14 +00:00
rstoyanchev
7459637808 Revise GraphQlTester documentation
Closes gh-317
2022-03-09 08:49:34 +00:00
rstoyanchev
afb0b64d3a Add section on directives in reference docs
Closes gh-262
2022-02-17 15:19:01 +00:00
rstoyanchev
194126dc6b Polishing contribution
Closes gh-233
2022-02-17 14:45:09 +00:00
rstoyanchev
1939021ec3 Summarize Boot starter features for GraphQlSource.Builder
Important to mention the `GraphQlSourceBuilderCustomizer` which is
otherwise mentioned neither in the Boot starter nor the reference here.
It is the path to a number of customizations that are discussed in
`GraphQlSource` subsections.

See gh-233
2022-02-17 14:44:57 +00:00
Jordie
a9cd0a9958 Update docs for PreparsedDocumentSupport
See gh-233
2022-02-17 14:44:57 +00:00
rstoyanchev
6df6ab78c8 Support for @Arguments method parameter
Closes gh-258
2022-02-10 12:19:31 +00:00
rstoyanchev
32930f7e88 Add logo to README.md 2022-02-09 10:51:32 +00:00
rstoyanchev
b17d4e2425 Add @AuthenticationPrincipal to reference
See gh-272
2022-02-08 20:58:55 +00:00
rstoyanchev
d2cad053ac Polishing 2022-02-03 10:16:57 +00:00
rstoyanchev
cc3c1d163e Improvements in data section of reference docs
See gh-248
2022-01-21 17:32:28 +00:00
rstoyanchev
4a031ba519 Create dedicated section on projections
Closes gh-264
2022-01-21 17:32:28 +00:00
Mark Paluch
f34da2589b Describe aggregates and projections
See gh-264
2022-01-21 16:53:42 +00:00
rstoyanchev
1bbaf9e524 Update links to Spring Boot starter section
Closes gh-254
2022-01-18 14:38:08 +00:00
rstoyanchev
0343ad9605 Update docs with section on Schema Creation
Closes gh-226
2022-01-18 12:30:30 +00:00
rstoyanchev
bde86d3dd1 Update docs on batch loading registration and tests
Closes gh-246
2022-01-18 11:24:01 +00:00
rstoyanchev
d8d8229a33 Polishing
Missed one deprecation and doc updates.

See gh-244
2022-01-17 21:09:00 +00:00
rstoyanchev
2ecac0bd35 Multiple WiringFactory registrations
CombinedWiringFactory makes use of multiple WiringFactory instances
possible, but RuntimeWiring.Builder does not use it by default.

This change enables use of multiple WiringFactory instances through
an extra callback on RuntimeWiringConfigurer that allows multiple
parties to add their own WiringFactory.

See gh-244
2022-01-14 18:44:54 +00:00
rstoyanchev
7a7e2e87dc Update project name to Spring for GraphQL
Closes gh-255
2022-01-13 12:16:02 +00:00
rstoyanchev
44efeb6473 Improve wording on use of RuntimeWiringConfigurer
Closes gh-249
2022-01-10 10:10:49 +00:00
Koen Punt
fcb86e00d3 Add missing quote in reference documentation
Closes gh-225
2022-01-07 14:45:37 +01:00
Koen Punt
ec7096495c Update testing reference documentation
This commit updates the testing documentation after changes done
with the 1.0.0-M4 release.

Closes gh-224
2022-01-07 14:45:32 +01:00
Brian Clozel
a15fd29fc0 Remove Spring Boot Experimental Starter
The Experimental Spring Boot Starter for Spring GraphQL has been moved
to Spring Boot and will be released with Spring Boot 2.7.0.

Closes gh-207
2021-12-21 14:09:17 +01:00
Brian Clozel
fe76809f3c Document spring-graphql-test dependency
This commit documents the fact that the `spring-graphql-test` dependency
is required for the testing support.

Fixes gh-205
2021-12-10 22:28:36 +01:00
Brian Clozel
3e29e71a6e Add support for Bean Validation
This commit adds support for validating handler method inputs after
binding from the data fetching environment and before invoking the
handler method.

This support is based on Bean Validation and is enabled only if the
application context contains a `Validator` bean.

Closes gh-110
2021-12-10 15:50:16 +01:00
Rossen Stoyanchev
58f2afebb5 Polishing contribution
Closes gh-215
2021-12-09 21:23:59 +00:00
Greg L. Turnquist
ddec60a68e Add documentation for query by example.
See gh-215
2021-12-09 21:23:59 +00:00
Rossen Stoyanchev
b22cef00ab Support context parameters in @BatchMapping methods
Closes gh-172
2021-12-08 13:44:19 +00:00
Rossen Stoyanchev
50aeaba63e Add support for @ContextValue method parameters
See gh-172
2021-12-08 09:47:49 +00:00
Rossen Stoyanchev
5597f543bd Polishing contribution
Closes gh-202
2021-12-01 18:39:17 +00:00
Mark Paluch
5aa72f216f Support for projected payloads
Controller methods now accept interface projections for individual or all
request arguments when Spring Data is on the class path.

See gh-202
2021-12-01 11:59:58 +00:00
Rossen Stoyanchev
cc5a8427a8 Update documentation
See gh-201
2021-11-26 14:26:50 +00:00
Brian Clozel
7543120006 Document Querydsl build setup
Closes gh-193
2021-11-25 11:48:31 +01:00
Brian Clozel
b9932735db Revert "Auto-configure DataLoaderRegistrar components"
This reverts commit 36a84f58bd.
2021-11-25 10:55:20 +01:00
Brian Clozel
36a84f58bd Auto-configure DataLoaderRegistrar components
This commit configures all `DataLoaderRegistrar` application components
with the `GraphQlService`. This allows applications to contribute
`DataLoader` instances without using the annotated-controller
programming model.

Closes gh-189
2021-11-24 16:18:40 +01:00
Rossen Stoyanchev
9a7bab42c9 Support Principal as a method argument
Closes gh-119
2021-11-12 19:47:18 +00:00