You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the nice thing about graphql is that it provides a sensible way to resolve cyclic references between objects. For example, if I have a many-to-many relationship between two object types House and Resident then I should be able to query either one from the other:
query {
house(address: "foo") {
residents {
name
age
}
}
}
or
query {
resident(name: "bar") {
houses {
address
}
}
}
However, using this library, if I try to create two objects with such a circular reference then I get a panic:
One of the nice thing about graphql is that it provides a sensible way to resolve cyclic references between objects. For example, if I have a many-to-many relationship between two object types
House
andResident
then I should be able to query either one from the other:However, using this library, if I try to create two objects with such a circular reference then I get a panic:
Can you give me an example of how to construct such circular dependencies with this library?
The text was updated successfully, but these errors were encountered: