Repository navigation
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
}
}) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Anyone know how to define a nullable object?
I have tried the following:
Also this:
All reactions