- Start Server, open GraphiQL at
http://localhost:31080
- Run Query that works:
mutation { createAccount(input:{ id: "1", fullname: "Klaus" } )}
- Note this query works, even
fullname
on the Java typeAccountInput
is ajava.util.Optional
- Try to add also a contact:
mutation { createAccount(input:{ id: "1", fullname: "Klaus", contact:{ phone: "123" } }) }
- This mutation fails (
Unable to make private java.util.Optional(java.lang.Object) accessible: module java.base does not "opens java.util" to unnamed module
) contact
on the java recordAccountInput
is also ajava.util.Optional
(asfullname
is), but contains another Record and not a Java primitive- Same problem occurs if instead of a Record a regular java class is used (see
personalData
)
-
Notifications
You must be signed in to change notification settings - Fork 0
nilshartmann/spring-graphql-optional
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published