Commit Graph

1261 Commits

Author SHA1 Message Date
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
Brian Clozel
8a4a4327e1 Upgrade to GraphQL Java 22 test version
See gh-932
2024-03-29 18:59:32 +01:00
Brian Clozel
52202d40d1 Add empty "data:" field for SSE complete event
Prior to this commit, the "event:complete" event would have no "data:"
field when completing the stream of data. This can cause problems with
browsers, as the `EventSource` callback might not get called without it.

This commit ensures that an empty data field is present in all cases.

Fixes gh-940
2024-03-29 16:19:47 +01:00
Brian Clozel
8632199abf Run build and publish action on main branch 2024-03-28 17:02:47 +01:00
Brian Clozel
5166dc071f Merge branch '1.2.x' 2024-03-28 17:00:47 +01:00
Brian Clozel
54d24abbb7 Remove remaining Concourse tasks for CI publish build
Closes gh-939
2024-03-28 16:59:18 +01:00
Brian Clozel
61f6afa80b Remove offending property from docs zip publishing
See gh-939
2024-03-28 16:49:25 +01:00
Brian Clozel
181fabc5c0 Fix deployment repository property name in publish action
See gh-939
2024-03-28 16:42:17 +01:00
Brian Clozel
9298ef5323 Add GitHub action for building and deploying SNAPSHOTs
See gh-939
2024-03-28 16:31:05 +01:00
Brian Clozel
19af883308 Merge branch '1.2.x' 2024-03-28 15:49:30 +01:00
Spring Builds
b9d4cbcc83 Next development version (v1.2.7-SNAPSHOT) 2024-03-28 13:27:23 +00:00
Brian Clozel
f21db214c5 Upgrade to Spring Framework 6.0.18
Closes gh-938
2024-03-28 14:17:27 +01:00
Brian Clozel
e7840e418b Upgrade to GraphQL Java 20.9
Closes gh-936
2024-03-28 09:27:16 +01:00
rstoyanchev
f9f021005f Merge branch '1.2.x' 2024-03-27 17:40:41 +00:00
rstoyanchev
b1aa0c67ed Use 0-based offset values for pagination
This is a temporary workaround to fix off-by-1 misalignment with
Spring Data, which uses 1-based offset values. Once the changes
in Spring Data become clear, we'll also adjust accordingly.

Closes gh-925
2024-03-27 17:40:17 +00:00
rstoyanchev
bb734bf894 Remove session state from onClose only
Doing the same eagerly from onError has the side effect of not being able
to delegate handleConnectionClosed to interceptors.

Closes gh-872
2024-03-27 11:50:26 +00:00
rstoyanchev
70a7b81e6e Merge branch '1.2.x' 2024-03-26 20:35:49 +00:00
rstoyanchev
ce7f77c585 Improve logic to resolve pagination arguments
The presence of either "after" or "first" leads to forward pagination.
Else if either "before" or "last" leads to backward pagination.
Fall back on forward if none are provided at all.

In addition, a small adjustment to backward pagination. If a count
is not provided, use 1 rather than 0, to advance to previous item.

Closes gh-929
2024-03-26 20:34:52 +00:00
rstoyanchev
1e6a5a09d7 Polishing in SchemaMappingInspector
See gh-934
2024-03-26 10:12:29 +00:00
rstoyanchev
eb7bc43ce9 SchemaMappingInspector consistently calls checkField
Rather than only checking for the presence of a property, also call
checkField on it. If it is a scalar then recursion stop anyway, but in the
unlikely event that it isn't, there are more fields to check.

Closes gh-934
2024-03-26 09:44:05 +00:00
rstoyanchev
651679b8ff Refactoring in SchemaMappingInspector
Rather than passing a DataFetcher into checkField, determine the return type
externally and pass it in. That makes the method more generally useful, and
independent of how the associated type is determined, e.g. whether from a
DataFetcher return type or a corresponding Java property.

See gh-934
2024-03-26 09:43:36 +00:00
rstoyanchev
27c44ecef5 Update docs for schema mapping inspection of unions and interfaces
Closes gh-924
2024-03-25 17:10:55 +00:00
rstoyanchev
a18586bed7 Polishing docs on schema mapping inspection
See gh-924
2024-03-25 15:36:20 +00:00