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

Inconsistent response of mongodb compared to other database for @link directve #1519

Open
sharadregoti opened this issue Feb 4, 2021 · 1 comment

Comments

@sharadregoti
Copy link
Contributor

@sharadregoti sharadregoti commented Feb 4, 2021

Describe the bug

The response of MongoDB is inconsistent wrt to SQL databases if the schema has links of type array. When the nested table doesn't have any rows/documents in it. The response returned is different

Expected behaviour

Actual behaviour

Steps to reproduce

  • Fire the query & observer the result
link table as array
if nested table has no rows, postgres and mysql returns
"details": [
                    {
                        "d3": null
                    }
                ]
but mongo returns 
"details": null,

need uniformity in our response 

Your environment

  • Space Cloud version:
  • OS:
  • Kubernetes or Docker:
  • The client api version (if applicable):
  • Browser (if applicable):

If this bug restricts your use of space-cloud, give it a thumbs up reaction, so that we can determine which bugs need to be fixed immediately.
👍

@YourTechBud
Copy link
Collaborator

@YourTechBud YourTechBud commented May 21, 2021

@sharadregoti please share the query and schema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants