Replies: 2 comments 1 reply
-
Do you know the model's type in |
Beta Was this translation helpful? Give feedback.
1 reply
-
For this use case, I think you're better off storing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My
audit_logs
collection tracks changes to a few collections (via change streams). Depending on the user actions, thechanges
array can contain documents with the same schema or different schemas. In this example, profile and account have a different schema.How do you define the schema for
changes
? Using array of Mixed type? (https://mongoosejs.com/docs/schematypes.html#mixed)Beta Was this translation helpful? Give feedback.
All reactions