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: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,17 @@
1
+
# Nosto Fork of GraphQL-Java Annotations adds support for partial updates and publishToNostoRepo gradle task for internal use
2
+
3
+
Adds support for binding to `java.util.Optional` parameters. Binding to Optional parameters allows implementing partial updates. With a partial update the mutate call can update only some of the Optional fields without needing to repeat all the existing values of an object.
4
+
5
+
The mapping from an optional field in GraphQL schema that binds to `java.util.Optional` is the following:
6
+
1. value given to the field in GraphQL call is mapped into `java.util.Optional` of the underlying type
7
+
2. null given to the field in GraphQL call is mapped into `Optional.empty` to signal the removal of a possibly existing value of the field
8
+
3. field not included in the GraphQL call is mapped into null to signal `undefined` so any possibly existing value(s) should not be modified
9
+
10
+
## Internal publishing to Nosto repository
11
+
12
+
Update the version in the `gradle.properties` file and run `./gradlew publishToNostoRepo` to publish the library to the Nosto repository.
0 commit comments