Closed lukepighetti closed 5 years ago
Just found this example and I find it to be a perfect solution.
path / is Person;
type Person {
name: String,
age: Number,
isMember: Boolean,
// Optional data (allows an Object or null/missing value).
extra: Object | Null
}
Bolt creates an explicit "no other properties" with
Allow us to specify that additional properties are allowed for certain paths.