Commit Graph

1283 Commits

Author SHA1 Message Date
rstoyanchev
1ea64dca5c Add protected encode method to WebFlux AbstractGraphQlHttpHandler
This helps to encode directly when needed, e.g. for multipart
stream with incremental delivery.

See gh-959
2024-04-26 12:02:10 +01:00
rstoyanchev
f61dfc56fe Align future handling with AsyncServerResponse
See gh-959
2024-04-25 12:33:56 +01:00
rstoyanchev
21a7c81062 Move handleRequest up to AbstractGraphQlHttpHandler
Closes gh-959
2024-04-25 12:29:44 +01:00
rstoyanchev
6376ec9054 Refactoring in server handlers
In preparation to move handleRequest method up.

See gh-959
2024-04-25 11:03:42 +01:00
rstoyanchev
432d982579 Polishing federation section of the reference
See gh-922
2024-04-24 09:33:15 +01:00
rstoyanchev
b1cb364ab4 Update GraphQlRequestPredicates to map application/graphql content
Closes gh-948
2024-04-22 16:02:53 +01:00
rstoyanchev
03c11d0876 Merge branch '1.2.x' 2024-04-22 13:07:52 +01:00
rstoyanchev
7dd9cf54ca Support application/graphql for request body
Closes gh-948
2024-04-22 12:30:34 +01:00
rstoyanchev
bf9c584919 Minor refactoring in HTTP handler tests
Change WebFlux handler to actually decode from JSON rather
than take an already decoded SerializableGraphQlRequest.

See gh-948
2024-04-22 12:30:05 +01:00
Brian Clozel
5977b2d8b7 Register runtime hints for @EntityMapping methods
Since the introduction of `@EntityMapping` support on controller
handlers, we need to support such variants for the GraalVM Native case.

This commit registers the relevant hints for runtime reflection support
with GraalVM Native.

Closes gh-928
2024-04-19 18:18:09 +02:00
Brian Clozel
c9556035ca Configure interceptors on WebSocketGraphQlTester
This commit adds two new methods on the `WebSocketGraphQlTester` builder
to configure `GraphQlClientInterceptor` instances on the client.
For now, this is only accessible on the WebSocket tester but could be
promoted to a higher level builder in the future.

Closes gh-823
2024-04-19 15:34:07 +02:00
Brian Clozel
fbb08c4c46 Merge branch '1.2.x' 2024-04-16 17:33:20 +02:00
Brian Clozel
8eb3cfd19d Update build status badge in README 2024-04-16 17:31:44 +02:00
Brian Clozel
288c1f1705 Merge branch '1.2.x' 2024-04-16 17:26:14 +02:00
Brian Clozel
2cb43e9368 Polishing
See gh-863
2024-04-16 17:26:00 +02:00
Brian Clozel
b8b4774f11 Merge branch '1.2.x' 2024-04-16 17:17:38 +02:00
Brian Clozel
1d98f9b45f Document schema Namespacing with annotated controllers
Closes gh-863
2024-04-16 17:16:44 +02:00
Brian Clozel
a5448ff3f2 Upgrade optional dependencies 2024-04-16 10:58:35 +02:00
Brian Clozel
32e8e254c9 Upgrade to Context Propagation 1.1.1
Closes gh-952
2024-04-16 10:57:55 +02:00
Brian Clozel
4198e9eed6 Upgrade to Spring Security 6.3.0-RC1
Closes gh-951
2024-04-16 10:57:18 +02:00
Brian Clozel
0f703f2ff0 Upgrade to Micrometer 1.13.0-RC1
Closes gh-950
2024-04-16 10:55:39 +02:00
Brian Clozel
d26527ec41 Point GraphQL Java to Javadoc 22.0
See gh-931
2024-04-16 09:19:25 +02:00
Brian Clozel
fc0791124b Upgrade to Spring Data 2024.0.0-RC1
Closes gh-947
2024-04-16 09:17:49 +02:00
Brian Clozel
c0388a8a65 Upgrade to GraphQL Java 22.0
Closes gh-931
2024-04-16 09:15:04 +02:00
Brian Clozel
d27580f6b3 Add Remote Address to WebGraphQlRequest
This commit makes available the client remote address to various GraphQL
request implementations.

Closes gh-945
2024-04-15 15:37:05 +02:00
rstoyanchev
31f50752d8 Update docs for batched EntityMapping methods
Closes gh-922
2024-04-15 12:40:03 +01:00
rstoyanchev
3f7e0f1be5 Polishing Federation section in docs 2024-04-15 12:40:03 +01:00
rstoyanchev
d45d31b1f1 Update docs for schema interface mappings
Closes gh-871
2024-04-15 12:40:03 +01:00
rstoyanchev
0b491b9635 Polishing docs 2024-04-15 12:40:03 +01:00
rstoyanchev
38f1eabb68 Support batched EntityMapping methods
See gh-922
2024-04-15 12:40:02 +01:00
rstoyanchev
23bf1fd8f3 Expand interface into object type mappings
See gh-871
2024-04-15 11:50:50 +01:00
rstoyanchev
af72628d14 Correct 1.3 since tags to 1.3.0 2024-04-13 03:25:46 +01:00
rstoyanchev
f17938e41e Polishing 2024-04-13 03:12:31 +01:00
rstoyanchev
2652a57e88 Enable use of single, specific ContextSnapshotFactory instance
Closes gh-919
2024-04-12 15:32:07 +01:00
rstoyanchev
d9a583ae2b Replace DataFetcher registrations with custom root type names
Closes gh-708
2024-04-12 10:42:21 +01:00
rstoyanchev
b84d521f1d Polishing documentation
See gh-608
2024-04-11 18:00:09 +01:00
rstoyanchev
10ea73d150 Handle PONG messages in WebSocket handlers
See gh-534
2024-04-11 16:59:42 +01:00
rstoyanchev
74688ea4ff Update contribution
Closes gh-608
2024-04-11 16:54:49 +01:00
Toby
3f5fc1a5b3 Support keepAlive in WebSocket client
See gh-608
2024-04-11 15:09:17 +01:00
rstoyanchev
d31b94ec02 Documentation update in WebSocket section
See gh-534
2024-04-11 14:20:02 +01:00
rstoyanchev
80ef9604e2 WebSocket handlers support keepalive PING messages
Closes gh-534
2024-04-11 13:54:00 +01:00
rstoyanchev
c8573cb720 Align offset scrolling with Spring Data 2024.0
Closes gh-946
2024-04-10 13:24:24 +01:00
Brian Clozel
86ba988f29 Upgrade to GraphQL Java 22.0-rc1
Closes gh-932
2024-04-05 09:58:12 +02:00
Brian Clozel
5f550d5027 Merge branch '1.2.x' 2024-04-05 09:51:43 +02:00
Brian Clozel
2a54ef486d Apply checkstyle changes to spring-graphql-test
See gh-943
2024-04-04 22:06:11 +02:00
Brian Clozel
4f1f0a2b20 Apply checkstyle changes to spring-graphql-docs
See gh-943
2024-04-04 22:05:38 +02:00
Brian Clozel
163027e525 Apply checkstyle changes to spring-graphql
See gh-943
2024-04-04 22:05:00 +02:00
Brian Clozel
b66eb64241 Re-enable checkstyle configuration in project
See gh-943
2024-04-04 22:04:33 +02:00
Brian Clozel
9e4d77395a Configure Jackson codec specifically for GraphQL HTTP endpoints
Prior to this commit, the `GraphQlHttpHandler` implementations would use
the JSON codecs configured in the web Framework (MVC or WebFlux) for
reading and writing GraphQL payloads as JSON documents.

This can cause issues in cases the application configures the JSON codec
in a way that makes it incompatible with the expected GraphQL documents.
For example, not serializing empty values and arrays.

This commit adds new constructors in `GraphQlHttpHandler`
implementations that can get a custom JSON codec for GraphQL payloads.

Closes gh-860
2024-04-02 18:11:35 +02:00
Brian Clozel
3e898f74fa Remove APIs deprecated in 1.0.x
Closes gh-941
2024-03-30 22:44:10 +01:00