Skip to content

Add api to handle other than id field #48

Closed
@Didier542

Description

@Didier542

In some cases, we need to identifying our entities by reference other than their ids.
Like in an e-shop with the upc reference.

For us, its concerns 3/4 of our requests. Its make the datasource mongodb package a bit useless.

The idea is to add 3 api's :

  • findOneBy(value, options = {field, ttl})
  • findManyBy(value, options = {field, ttl})
  • deleteFromCacheBy(value, options = {field})

What do you think about it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions