graphql.AssertException: type can't be null

Stack Overflow | Peace | 5 months ago
  1. 0

    graphql-java cyclic types dependencies

    Stack Overflow | 5 months ago | Peace
    graphql.AssertException: type can't be null

    Root Cause Analysis

    1. graphql.AssertException

      type can't be null

      at graphql.Assert.assertNotNull()
    2. graphql
      Assert.assertNotNull
      1. graphql.Assert.assertNotNull(Assert.java:10)
      1 frame
    3. graphql.schema
      GraphQLFieldDefinition$Builder.build
      1. graphql.schema.GraphQLFieldDefinition.<init>(GraphQLFieldDefinition.java:23)
      2. graphql.schema.GraphQLFieldDefinition$Builder.build(GraphQLFieldDefinition.java:152)
      2 frames
    4. graphql_types
      GraphQLTypes.<init>
      1. graphql_types.GraphQLTypes.createStudentType(GraphQLTypes.java:26)
      2. graphql_types.GraphQLTypes.<init>(GraphQLTypes.java:19)
      2 frames