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

indeterministic query behaviour when querying by DBRef #167

Open
GithubArray opened this issue Aug 11, 2023 · 0 comments
Open

indeterministic query behaviour when querying by DBRef #167

GithubArray opened this issue Aug 11, 2023 · 0 comments

Comments

@GithubArray
Copy link
Contributor

Query result is indeterministic when querying by DBRef. Sometimes a matching document is returned but sometimes is not.

Sample json:

[
  {
    "_id": ObjectId("64c24d0880abcf083d007a61"),
    "dbref": {
      "$ref": "collection2",
      "$id": ObjectId("64c1e71c80abcf083d007a36"),
      "extraField": "test"
    }
  }
]

Sample query:

db.collection.find({
  "dbref": {
    "$ref": "collection2",
    "$id": ObjectId("64c1e71c80abcf083d007a36"),
    "extraField": "test"
  }
})

Mongo Playground

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

No branches or pull requests

1 participant