Webtomizer / typeorm-loader

A database-aware data-loader for use with GraphQL and TypeORM.
82 stars 8 forks source link

Decouple field info from GraphQL #7

Open avin-kavish opened 4 years ago

avin-kavish commented 4 years ago

I'm using a multi-tiered service architecture. My resolvers do ACL checks and make requests to a business logic service layer, they don't load any data directly. I'd like to extract the required fields at the resolver and pass them between services via a more generic contract. Maybe a string array.

In order to do this the library would need to accept a selection of fields externally.