Java Spring Graphql Return Null Stack Overflow

Java Spring Graphql Return Null Stack Overflow I want to create my own website in the form of a blog using spring boot and graphql api, but i don't understand how to connect the database to graphql. when making a request through graphiql, it returns null. Similarly, if a list field contains a non nullable type and one or more list elements return null, the whole list resolves to null. additionally, if the parent field containing the list field is non nullable, then the error handling is propagated until we reach a nullable parent or the root element.

Java Spring Graphql Return Null Stack Overflow Using a debugger, in this lambda function, executioninput.getextensions() returns an empty map. therefore .get(key) where key = "traceparent" returns null, and null.tostring() results the error. just adding dependencies io.micrometer:micrometer core and io.micrometer:context propagation didn't solve the problem. Executiongraphqlservice is the main spring abstraction to call graphql java to execute requests. underlying transports, such as the http, delegate to executiongraphqlservice to handle requests. the main implementation, defaultexecutiongraphqlservice, is configured with a graphqlsource for access to the graphql.graphql instance to invoke.

Java Spring Graphql Return Null Stack Overflow

Java Spring Graphql Return Null Stack Overflow

Java Spring Graphql Return Null Stack Overflow

Java Spring Graphql Return Null Stack Overflow
Comments are closed.