Closed rosekamallove closed 2 years ago
@ljharb should we also add the GraphQL Query in the same file too?
Let’s start with just the metrics - maybe the graphql query can be constructed dynamically from the one list of metrics?
The names are different in the metricNames
array we would have to add a lot of checks. Maybe I can think of a solution.
For now I'll just refactor the metricsNames
extractMethods
& permissions
Done in #60.
We can probably create a file say
metrics.js
and then add an object to it containing all the metric-dependent code.It may look like: