Support for MongoDB ObjectId type
marek-benes opened this issue ยท 1 comments
marek-benes commented
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the feature has not already been requested
๐ Feature Proposal
Hello,
Mongo database is used very often with Fastify. However, native objectID type represents the primary key is not supported in the parse function. Could you add support for this type, please?
Motivation
No response
Example
No response
jsumners commented
Define your own object that supports the toJSON
method and provides the serialization.