Skip to content

Support non-id primary keys #116

Description

@jamesremuscat

It looks like Admiral is hard-coded to expect an id attribute to be the primary key for data.


pathname={`${config.path}/${record.id}`}

id={record.id}

This is an issue if using an API with a different name for the primary key! (For example, I'm trying to work with objects that have sessionID as their primary key.)

It would be useful to be able to specify this as part of a CRUD definition.

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