You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation/support/ProjectedPayloadMethodArgumentResolver.java
+37-31Lines changed: 37 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -30,32 +30,34 @@
30
30
importorg.springframework.util.Assert;
31
31
32
32
/**
33
-
* Resolver to obtain an {@link ProjectedPayload @ProjectedPayload},
34
-
* either based on the complete {@link DataFetchingEnvironment#getArguments()}
35
-
* map, or based on a specific argument within the map when the method
36
-
* parameter is annotated with {@code @Argument}.
33
+
* Resolver for a method parameter that is an interface annotated with
34
+
* {@link ProjectedPayload @ProjectedPayload}.
37
35
*
38
-
* <p>Projected payloads consist of the projection interface and accessor
39
-
* methods. Projections can be closed or open projections. Closed projections
40
-
* use interface getter methods to access underlying properties directly.
41
-
* Open projection methods make use of the {@code @Value} annotation to
36
+
* <p>By default, the projection is prepared by using the complete
37
+
* {@link DataFetchingEnvironment#getArguments() arguments map} as its source.
38
+
* Add {@link Argument @Argument} with a name, if you to prepare it by using a
39
+
* specific argument value instead as its source.
40
+
*
41
+
* <p>An {@code @ProjectedPayload} interface has accessor methods. In a closed
42
+
* projection, getter methods access underlying properties directly. In an open
43
+
* projection, getter methods make use of the {@code @Value} annotation to
42
44
* evaluate SpEL expressions against the underlying {@code target} object.
Copy file name to clipboardExpand all lines: spring-graphql/src/test/java/org/springframework/graphql/data/method/annotation/support/ProjectedPayloadMethodArgumentResolverTests.java
0 commit comments