Peter Zhou
07/26/2019, 9:41 PMexport const USER_WITH_PROJECTS_QUERY = gql`
query UserWithProjectsQuery {
me {
id {
organization {
projects {
id
name
lastUpdated
}
}
}
}
}
`;
and expect it to make only one call to the database. However, inspecting the queries made to the postgres database I see that there are actually two calls (I’ve posted the postgres logs as a reply to this)
Why is prisma not making one call for both projects? Is there no batching mechanism under the hood?Peter Zhou
07/26/2019, 9:42 PMHarshit
07/29/2019, 11:58 AM