paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
687 stars 55 forks source link

findMany Mutation used with take argument is returning empty array for child/related Tables #253

Open nitheshb opened 2 years ago

nitheshb commented 2 years ago

Empty array is being returned,When tried to retrieve rows from related tables with take condition. Parent rows and values are being retrieved successfully

findManyParentTab(take: 2){ name location childTable1{ childname childlocation } }

result:

[ {'name': 'Arya', 'location': 'winterfall', childTable1: []}, {'name': 'Tyrion', 'location': 'Lanister', childTable1: []}, ]