Skip to content

type not found in schema #2

Description

@KMUS

configuration

<dependency>
    <groupId>org.eclipse.microprofile.graphql</groupId>
    <artifactId>microprofile-graphql-api</artifactId>
    <version>1.0-M5</version>
</dependency>
<dependency>
    <groupId>io.leangen.graphql</groupId>
    <artifactId>graphql-spqr-module-microprofile</artifactId>
    <version>1.0-SNAPSHOT</version>
    <scope>system</scope>
    <systemPath>${basedir}/lib/graphql-spqr-module-microprofile-1.0-SNAPSHOT.jar</systemPath>
</dependency>
schema = new GraphQLSchemaGenerator()
                        .withModules(new MicroProfileModule())
...

models

class Bar {
}

class Foo {
    Bar bar; // setter and getter are omitted
}

endpoint

@Mutation("create")
public String create(Foo foo) {
    return "string";
}

A side reload with GraphiQL always gives:

type BarInput not found in schema

This only happens with nested user-defined types, whether as a class or an enumeration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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