Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type not found in schema #2

Open
KMUS opened this issue Jan 7, 2020 · 0 comments
Open

type not found in schema #2

KMUS opened this issue Jan 7, 2020 · 0 comments

Comments

@KMUS
Copy link

KMUS commented Jan 7, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant