Replies: 1 comment
-
You can try something like this: const MySchema = new Schema({
foo: {
type: {
type: new Schema({ bar: String })
}
}
}); Does that help? |
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
-
Hi,
I'm unable to create an embedded schema with a field name
type
as it apparently clashes with internaltype
prop:Is there a work-around for this?
Beta Was this translation helpful? Give feedback.
All reactions