Skip to content

allowedValues from a collection #1

Closed
@adam-da

Description

Hi,

Is there a way to define allowedValues from a mongo query?
something like that:

...
group: {
        type: Schemas.Groups,
        optional: true,
        allowedValues: Groups.find({},{fields:{_id:0}}).fetch()
    }
...

I've added

    auxCollections: ['Groups'],

to the main config, but when I get to the editing panel, the dropdown menu is empty..

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions