Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Using a projection on a dataquery #107

@KeironO

Description

@KeironO

Hey there,

I have written the following MongoDB schema to return required data, notice the use of a projection on adducts.positive.peaks.

db.metabolites.find(
            { "adducts.positive.peaks.accurate_mass": {$gt : 1200, $lt : 1220}},
            { "name" : 1, "accurate_mass" :1, "adducts.positive.peaks.$": 1}
        )

However, there doesn't seem to be any clear way of doing this in flask-mongorest.

Are there any plans to implement the $ operator in flask-mongorest?

Thank you,

Keiron.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions