fastify/fast-json-stringify

Support for MongoDB ObjectId type

marek-benes opened this issue ยท 1 comments

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

Define your own object that supports the toJSON method and provides the serialization.