Skip to content

Provide way to obtain scoped collections #1

@mitar

Description

@mitar

Maybe something like subscriptionHandle.collection[collectionName].find() would be the same as collection.find(subscriptionHandle.scopeQuery()).

I am not sure if this is really the best approach because subscriptions can be for multiple collections and then you have to know how to map to collections. With current approach with scopeQuery we do not care for which collection a document is. This is left to the developer to use properly.

Maybe useful: https://github.com/tmeasday/cursor-utils

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