Skip to content

Support the $ positional operator in projection #718

Description

@avaly

Papr does not support the $ projection syntax:

await Student.find(
  {
    semester: 1,
    grades: { $gte: 85 }
  },
  {
    projection: {
      'grades.$': 1 // this throws a TS error
    }
  }
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions