I'm calling the addMessageFocus mutation via GraphQL in my NodeJS code I am receiving an HTTP 200 response but the focus annotation is not added. I receive the following response in the body:
"Failed to convert from type [com.ibm.ess.graphql.schema.inputtypes.MessageFocusInput] to type [com.ibm.toscana.lib.common.annotations.model.MessageFocusAnnotation] for value 'com.ibm.ess.graphql.schema.inputtypes.MessageFocusInput@d143c36c'; nested exception is java.lang.NullPointerException"
This response changes depending on the x-graphql-view header setting which is currently "PUBLIC, BETA". This heading value is not mentioned in the documentation and I'm basing it off examples found in GitHub.
Content-Type is application/graphql.
Here is my GraphQL, please could you advise on how I resolve this error and add the focus annotation.
Please sign in to leave a comment.