Uconnect-Technologies / wertik-js

💪 A library that powers your app with GraphQL + Rest API

Home Page:http://wapgee.com/wertik

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert lazy loading to eager of graphql resolvers.

ilyaskarim opened this issue · comments

Right now we are using lazy loading of Database items instead of eager loading. We need to use eager loading because if there are 5000 items then probably this will impact a lot on the server. Because for each item or relation the graphql resolver is running a different SQL query.

  • This will be fixed through Sequelize Associations.