wildmountainfarms / wild-graphql-datasource

Grafana data source to interpret GraphQL queries as timeseries data. Includes a GraphiQL query editor with autocomplete!
https://grafana.com/grafana/plugins/retrodaredevil-wildgraphql-datasource/
MIT License
4 stars 2 forks source link

"key is not a nested object" when part of path is null #2

Open retrodaredevil opened 6 months ago

retrodaredevil commented 6 months ago

This error message is not always helpful when part of the data path is null.

We should check for null and provide a more descriptive message.

https://github.com/wildmountainfarms/wild-graphql-datasource/blob/ca229d7c8b08514ab728d20eb990ef1522c8b862/pkg/plugin/parsing/parsing.go#L41