Skip to content

Proper example for getMany #335

@tomcatmurr

Description

@tomcatmurr

Hi guys, could you provide a proper example for getMany (with idResolver etc). Missing it here and in node-service-template (which is great btw). Aiming to implement it with mikro-orm.

I want to manage stuff like getAll or pagination, i.e. collections or complex objects while I am limited with Promise in get and Promise<LoadedValue[]> in getMany using DataSource interface for a loader.

The dumb way just to use get with keys like 'ALL' (for getAll) but yet in coflicts with interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions