Skip to content

Support for idField: 'id' in Feathers-Pinia When _id is Not Present #179

@Yehoshooafried

Description

@Yehoshooafried

Hi, first, thanks for your amazing library!

I ran into an issue while using Feathers-Pinia where my user entity has id instead of _id, causing authentication and store updates to fail. Feathers-Pinia seems to expect _id as the default identifier, which prevents users from being saved properly in the store.

To fix this, I had to manually map id to _id in my FeathersJS after hooks, which isn’t ideal. It would be great if Feathers-Pinia could properly respect idField: 'id' without requiring backend modifications.

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