Skip to content

"category" and "subType" in Server are null, even as a non-null type #56

@pe3ep

Description

@pe3ep

If i send this query:

query MyQuery {
  playerByUsername(username: "pe3ep") {
    status {
      online
      server {
        associatedGame
        category
        subType
      }
    }
  }
}

I get this error:

{
  "errors": [
    {
      "message": "The field at path '/playerByUsername/status/server/category' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value.  The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'ServerCategory' within parent type 'Server'",
      "path": [
        "playerByUsername",
        "status",
        "server",
        "category"
      ],
      "extensions": {
        "classification": "NullValueInNonNullableField"
      }
    },
    {
      "message": "The field at path '/playerByUsername/status/server/subType' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value.  The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'String' within parent type 'Server'",
      "path": [
        "playerByUsername",
        "status",
        "server",
        "subType"
      ],
      "extensions": {
        "classification": "NullValueInNonNullableField"
      }
    }
  ],
  "data": {
    "playerByUsername": {
      "status": {
        "online": true
      }
    }
  }
}

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