Fragments? #331
Unanswered
matthewlilley
asked this question in
Q&A
Fragments?
#331
Replies: 1 comment 1 reply
-
I am not following your question here. You should be a let of use fragments in your queries. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have cases where I might want to call the same entity multiple times using the timetravel feature of graph-node. This is useful for rolling windows of data, like 24h volume, 24h fees, 24h transaction count etc... Currently this will select EVERYTHING which the base entity needs, but actually only needs a few fields per entity.
First though was fragments, but unsure what that looks like here...
An example use case:
https://github.com/sushiswap/sushiswap/blob/refactor/graph-client/packages/graph-client-2/resolvers/pairs/index.ts#L54
Beta Was this translation helpful? Give feedback.
All reactions