Join Slack
Powered by
In this example, how many individual requests are ...
# orm-help
j
joar
12/05/2018, 1:28 PM
In this example, how many individual requests are done against the DB?
Copy code
const author = await context.prisma .post({ id, }) .author()
Does it first query the post, and then the author? Or does it batch them and join?
m
marcus
12/05/2018, 1:49 PM
This is one query. In essence the client is a query builder and the actual execution is delayed to the latest moment possible.
j
joar
12/05/2018, 2:24 PM
Ok great, thanks
3
Views
Open in Slack
Previous
Next