graphql-java-tools icon indicating copy to clipboard operation
graphql-java-tools copied to clipboard

Unable to set a custom type

Open nnrudakov opened this issue 4 years ago • 0 comments

Description

Trying to set custom type:

import com.fasterxml.jackson.databind.node.ObjectNode
//...
val schema = SchemaParser.newParser()
schema.dictionary("EntityCreateInput", ObjectNode::class.java)
schema.dictionary("EntityUpdateInput", ObjectNode::class.java)

Actual behavior

Getting error:

Failed to instantiate [graphql.kickstart.tools.SchemaParser]: Factory method 'schemaParser' threw exception; nested exception is java.lang.IllegalArgumentException: value already present: class com.fasterxml.jackson.databind.node.ObjectNode

How to set custom type with the same class?

nnrudakov avatar Dec 22 '20 10:12 nnrudakov