Skip to content

kotlin.KotlinNullPointerException upon calling graphql.schema() as soon as I use a UNION type #46

Open
@flq

Description

@flq

I suspect this can be well reproduced by providing the schema I tried:

union Thing = ThingA | ThingB

type User {
  id: ID!
  commentsOn: [Thing!] @relation(name: "COMMENTED")
}

type ThingA {
  id: ID!
}

type ThingB {
  id: ID!
}

The schema is accepted wth a call to graphql.idl but once I call graphql.schema I get

Neo.ClientError.Procedure.ProcedureCallFailed: 
Failed to invoke procedure `graphql.schema`: 
Caused by: kotlin.KotlinNullPointerException

I haven't tested whether other operations work but would open a different issue in that case, as this one is only related to graphql.schema()

Metadata

Metadata

Assignees

No one assigned

    Labels

    API-AlignmentAlign the API with the one defined by @neo4j/graphql

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions