File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
spring-graphql/src/main/java/org/springframework/graphql/client Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -185,15 +185,24 @@ interface RequestSpec {
185
185
RequestSpec attributes (Consumer <Map <String , Object >> attributesConsumer );
186
186
187
187
/**
188
- * Shortcut for {@link #execute()} with a single field path to decode from.
188
+ * Shortcut for {@link #execute()} with a field path to decode from.
189
+ * <p>If you want to decode the full data instead, use {@link #execute()}:
190
+ * <pre>
191
+ * client.document("..").execute().map(response -> response.toEntity(..))
192
+ * </pre>
189
193
* @return a spec with decoding options
190
194
* @throws FieldAccessException if the target field has any errors,
191
195
* including nested errors.
192
196
*/
193
197
RetrieveSpec retrieve (String path );
194
198
195
199
/**
196
- * Shortcut for {@link #executeSubscription()} with a single field path to decode from.
200
+ * Shortcut for {@link #executeSubscription()} with a field path to
201
+ * decode from for each result.
202
+ * <p>If you want to decode the full data, use {@link #executeSubscription()}:
203
+ * <pre>
204
+ * client.document("..").executeSubscription().map(response -> response.toEntity(..))
205
+ * </pre>
197
206
* @return a spec with decoding options
198
207
*/
199
208
RetrieveSubscriptionSpec retrieveSubscription (String path );
You can’t perform that action at this time.
0 commit comments