Recursive Schemas
In this section you'll find out how to design recursive revive schemas using revive schema providers
Last updated
Was this helpful?
In this section you'll find out how to design recursive revive schemas using revive schema providers
Last updated
Was this helpful?
Recursive schemas are useful when modeling objects that have references to other instances of themselves. For example:
In this example, a Person
has friends which are in turn Person
objects.
Given the recursive dependency, it is impossible to revive such an object by describing a literal schema. Instead, we can rely on . We can turn the above class into a schema provider like this: