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

server/mssql: query by pk returning empty array when no column values are matched #7784

@rakeshkky

Description

@rakeshkky

Version Information

Server Version: v2.1.0-beta.2

Environment

OSS

What is the expected behaviour?

While running a table_by_pk query, if no rows found with given primary key column values then the response should be null.

The query: No rows exist with id = 6

query {
  article_by_pk(id: 6){
    id
    author_id
  }
}

Expected response:

{
  "data": {
    "article_by_pk": null
  }
}

Keywords

mssql query by pk

What is the current behaviour?

While running a table_by_pk query, if no rows found with given primary key column values then the response is empty array expression [].

The query: No rows exist with id = 6

query {
  article_by_pk(id: 6){
    id
    author_id
  }
}

Current response:

{
  "data": {
    "article_by_pk": []
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions