Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ID only supports integer but strings also works #1152

Open
miroslav-drska opened this issue Aug 12, 2020 · 0 comments
Open

ID only supports integer but strings also works #1152

miroslav-drska opened this issue Aug 12, 2020 · 0 comments
Labels

Comments

@miroslav-drska
Copy link

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!

@soyuka soyuka added the mongodb label Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants