MetaCPAN-Client
MetaCPAN-Client copied to clipboard
Include the coverage data in the data returned by the recent call
In the code generating the CPAN Digger first I call $mcpan->recent
and then on every release I call $mcpan->cover($release->name);
If I understand correctly this will generate as many API requests as releases I fetch. (Which is now 200).
Is there a way to get the cover data already in the first call together with the other data of the recently uploaded releases?
cover is a separate index which will require some work on the API level to open for raw querying. I will try working on that during PTS.
This is a classic use-case for GraphQL.
@mohawk2 Is there a GraphQL API for MetaCPAN or are you saying it should have one?