Recursive Schemas
In this section you'll find out how to design recursive revive schemas using revive schema providers
class Person {
name = ''
friends: Person[] = []
}class Person {
name = ''
friends: Person[] = []
public getRevivalSchema(): RevivalSchema<Person> {
return {
type: Person,
properties: {
friends: {
items: Person
}
}
}
}
}Last updated