Skip to content

Issue with Byte schema type definition #338

@pritamroy11

Description

@pritamroy11

I have a graphql schema definition like:

type Response {
    fileName: String
    contents: [Byte]
    contentType: String
}

in the Response pojo I have the below code for Byte[] with getter and setter:
private Byte[] contents;

Now, I am getting exception while running the springboot app:

Caused by: com.coxautodev.graphql.tools.SchemaClassScannerError: Unable to match type definition (ListType{type=TypeName{name='Byte'}}) with java type (class [Ljava.lang.Byte;): No TypeDefinition for type name Byte

in pom.xml, I have below dependencies:

\<dependency\>
         \<groupId\>com.graphql-java-kickstart\<\/groupId\>
	\<artifactId\>graphql-spring-boot-starter\<\/artifactId\>
	\<version\>5.11.1\<\/version\>
\<\/dependency\>
\<dependency\>
	\<groupId\>com.graphql-java-kickstart\<\/groupId\>
	\<artifactId\>graphql-java-tools\<\/artifactId\>
	\<version\>5.7.1\<\/version\>
\<\/dependency\>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions