Skip to content

fix(mongo): JSON filter cannot match ObjectId / DateTime fields #783

Description

@ZhuchkaTriplesix

Summary

Document list filter is json.decode into a map passed to find. {\"_id\": \"<hex>\"} and ISO date strings do not match BSON ObjectId / DateTime, so the filter returns empty with no hint. Same type-loss family as the document editor.

Scope

  • Accept Extended JSON in the filter box ({\"_id\": {\"\$oid\": \"…\"}}) or detect a 24-char hex _id and wrap ObjectId.
  • Empty-result hint when the filter looks like an _id string.
  • Tests for ObjectId equality in find filter construction.

Out of scope

  • Full aggregation pipeline UI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontendTheme parser epic label: frontend

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions