Skip to content

ID only supports integer but strings also works #1152

Open
@miroslav-drska

Description

@miroslav-drska

According to docs API Platform supports as ID identifiers for MongoDB only integers with an increment strategy. But when testing string IDs they seem to work well, including references to other documents.
1. Is it a non-documented feature?
2. Is it a deprecated feature to be removed in future releases?
3. Is it an unexpected behavior?

Documentation:
https://api-platform.com/docs/master/core/mongodb/

Identifier fields always need to be integers with an increment strategy. API Platform does not support the native ObjectId.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions