Replies: 1 comment
-
Hey, @mauriceoc. There's no support for this as of now but we'd definitely have to support this. Looks like a matter of extending the For now, you can move the nested object into a separate model and create a relationship: const db = factory({
user: {
id: primaryKey(String),
permissions: nullable(oneOf('permission')),
},
permission: {
id: primaryKey(String),
title: String
}
}) |
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
-
Anyone know how to define a nullable object?
I have tried the following:
Also this:
Beta Was this translation helpful? Give feedback.
All reactions