Skip to content

Find behaves differently from MongoDB #43

@joshq00

Description

@joshq00

Document:

{ _id: 1,
  author: { name: "John", email: "[email protected]" },
  comment: ".....",
  .....
}

Searching for author.name: "John" should return record 1, but does not.

One has to search author: { name: "John" } which returns record 1.

This differs from mongo in that the first example would return record 1 and the second would not. Nested objects must fully match. Searching for nested properties uses "author.name" syntax.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions