Nelson Pecora
12/13/2019, 2:40 PMtype Content {
name: String
children: [Content!]! @relation(link: TABLE, name: "ContentChildren")
}
Then I do a query to my GraphQL API with more than two levels of nesting, e.g.:
{
content(id: $id) {
children {
name
children {
name
children {
name
children {
name
}
}
}
}
}
}
And in my children
resolver, I call prisma.content({ id }).children()
, I see response times that look like this:
• first level: ~30ms
• second level: ~30ms
• third level: ~200ms
• fourth level: ~700ms