Skip to content

withStorage - allow arbitrary and composite PKs #6

Description

@adrians5j

Introduction

Currently, the withStorage layer works with the id field as the entity's PK. The value of the id field is always a simple MongoDB ID.

This is not good for a couple of reasons.

  1. In some databases, like e.g. DynamoDB, the user basically never uses a randomly generated ID for PKs. So, this means we need to ensure that users can use any arbitrary string as the PK.

  2. Users cannot define a composite PK - a key that consists of two or more fields.

The solution

We need to allow users to use any arbitrary string as the PK, and we need to allow defining composite PKs.

Implementation details

TBD

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions