Skip to content

Compound foreign key support #2

@michaelprichardson

Description

@michaelprichardson

The functionality to be able to string together multiple queries for the foreign key. At the moment there is only one .where(...). Being able to have multiple .where(...).where(...) (Note the firebase limits), would help the queries be more specific.

source: {
    collection: 'master/{someId}/detail',
},
targets: [
    {
        collection: 'details/{someId}/more_detail',
        foreignKey: 'masterId',
        where: [
            {
                field: 'masterId',
                operator: '==',
                value: someId
            },
            {
                field: 'secondId',
                operator: '>',
                value: 0
            },
        ]
    },
],

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