We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69ae51d commit 0779d31Copy full SHA for 0779d31
src/main/java/graphql/schema/Coercing.java
@@ -11,7 +11,8 @@ public interface Coercing<I, O> {
11
* Called to convert a result of a DataFetcher to a valid runtime value.
12
*
13
* @param input is never null
14
- * @return null if not possible/invalid
+ * @return never null
15
+ * @throws graphql.GraphQLException if value input can't be serialized
16
*/
17
O serialize(Object input);
18
@@ -20,7 +21,8 @@ public interface Coercing<I, O> {
20
21
* Null if not possible.
22
23
24
25
26
27
I parseValue(Object input);
28
0 commit comments