Skip to content

Unable to set a custom type #465

Open
@nnrudakov

Description

@nnrudakov

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions