3 ms·
> with GraphQL there are relations that get used through each other which is less straightforward to determine when pruning or updating your API That can be ea
by tgasson 9y ago
> with GraphQL there are relations that get used through each other which is less straightforward to determine when pruning or updating your API
That can be easier since you can add metrics to each individual field rather than url, allowing you to deprecate rarely used fields knowing what you'll break and alert only those who are using it of the change
- le-mark 9y agoIs this "adding of metrics" to fields part of graphql api, or something the data store would provide? Apologies but I've only just started exploring graphql.
- tgasson 9y agoNo, not part of graphql. Apollo Optics (no relation) is an option, or you can instrument the fields yourself just like you would implement any other instrumentation.
- mosselman 9y agoThat could be true, but field would not be enough, at least in my limited understanding. I can imagine that I'd also want to know which information is retrieved through other pieces of information. So lets say `Post -> Comments -> Author -> Avatar`, rather than just `Avatar`. This is important because it shows that whatever I do I should at least support the relation to `Avatar` through `Post -> Comments -> Author`.