Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rakeshkky opened this issue Nov 8, 2021 · 1 comment
Assignees
Labels
a/data/mssql c/server Related to server estimate/S k/bug Something isn't working

Comments

@rakeshkky
Copy link
Member

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": []
  }
}
@rakeshkky rakeshkky added k/bug Something isn't working c/server Related to server a/data/mssql labels Nov 8, 2021
@rakeshkky rakeshkky self-assigned this Nov 8, 2021
@sassela
Copy link
Contributor

sassela commented Nov 15, 2021

closed by 95be515

@sassela sassela closed this as completed Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a/data/mssql c/server Related to server estimate/S k/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants