Skip to content

Customize the primary key without using indexeddb's auto-increment primary key #1

Open
@akirarika

Description

@akirarika

Hello, thank you for creating entity-db!

I am a beginner to entity-db. It seems that the primary key of entity-db is to use the autoincrement id of indexeddb. Is there any way to customize it? For example, I want to use doc: ${workspaceId}: ${userId}: ${randomStr} this custom string as the id, which can make code writing easier. Of course it may be because I don't know enough about entity-db.

If this is a stupid question, sorry to bother you!

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