这是indexloc提供的服务,不要输入任何密码
Skip to content

Remote schema is queried with null id #5448

@salceson

Description

@salceson

Hasura version: 1.3.0

We have a table project in our database that has following columns:
image
(relevant column is updated_status_by - please note that the column CAN be null)

On this column we have defined a remote relationship:
image

When we query for a row that has null in updated_status_by, the remote schema is also queried with null.

If relevant, the query we execute is as follows:

query MyQuery($id: uuid!) {
  project: project_by_pk(id: $id) {
    id
    name
    status
    created_at
    updated_status_at
    updated_status_by_user {
      id
      name
  }
}

I believe that this should not be happening (if updated_status_by is null, then there will be no updated_status_by_user, would it?). Is this behavior correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    support/needs-actionsupport ticket that requires action by team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions