opensource-observer / oso

Measuring the impact of open source software
https://opensource.observer
Apache License 2.0
71 stars 16 forks source link

Generic dlt + GraphQL factory #2194

Open ryscheng opened 1 month ago

ryscheng commented 1 month ago

What is it?

Some GraphQL APIs support schema introspection https://graphql.org/learn/introspection/

This is something the developer has to turn on (we do for our API). If it exists, then we can programmatically crawl the schema to determine everything we want to grab from a GraphQL API.

If we had this kind of factory, it would make it trivial to replicate any GraphQL API that support introspection.

ryscheng commented 1 month ago

Idea from @Jabolol we should make the configurations sufficiently expressive to limit complexity. e.g. limit the depth of a query

ryscheng commented 2 weeks ago

Might be nice to specify a GraphQL fragment if there's only a specific thing that we want (e.g. from the GitHub API)