graph-client icon indicating copy to clipboard operation
graph-client copied to clipboard

Leverage `extensions` in `graph-node` responses

Open dotansimha opened this issue 2 years ago • 2 comments

This is an open issue to discuss the option to add some metadata in graph-node responses, using the extensions field of GraphQL response.

dotansimha avatar Feb 15 '22 06:02 dotansimha

@lutter @azf20 what do you think about this?

We discussed this with several daaps developers, we think maybe the gateway/graph-node can have an option to return execution/cost/indexing information, and we can have an easy API/tooling on The Graph client to use those (for deciding on preferred indexer/source, collecting some metrics, finding performance bottlenecks and so on)

dotansimha avatar Feb 28 '22 09:02 dotansimha

That makes sense to me - @Jannis what do you think?

There is some corresponding work in graph-node, and maybe also in Gateways to support? Of course would also need to decide what metadata is of interest etc.

azf20 avatar Feb 28 '22 10:02 azf20

This is available via includeHttpDetailsInExtensions flag. @dotansimha

ardatan avatar Sep 06 '22 23:09 ardatan

Thanks @ardatan ! Closing ;)

dotansimha avatar Sep 08 '22 15:09 dotansimha