aignerjo / entsoe-graphql

Wip: GraphQL Adapter for Entsoe Transparency Platform
MIT License
0 stars 0 forks source link

Refactor solar and wind resolver #13

Open aignerjo opened 4 years ago

aignerjo commented 4 years ago

Currently we use three different requests to retrieve solar, wind (onshore) and wind (offshore). These fields can be resolved using a single request to the api.

aignerjo commented 4 years ago

Perhaps using one data loader for all and retrieve the requested field in the resolver itself

this.renewableLoader.load(...).windOnshore this.renewableLoader.load(...).windOffshore this.renewableLoader.load(...).solar