Skip to content

Separating raw queries from query builder #14

@aminalaee

Description

@aminalaee

Right now we support both at the same time:

# Raw query
await Movie.query({"name": "X"}).first()

# Query builder
await Movie.query(Movie.name == "X").first()

This leas to complexity handling both in the same method. I'm thinking maybe adding a .raw() method which accepts the query and doesn't do any validation/query building and sends it directly to MongoDB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions