You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.
With our auction page loading all artworks in a sale, we now want to query the auction state from causality's graphQL api.
AC
Fill in the list of artworks with their current auction state from causality. We don't need to fit the whole state in every list item.
Notes
We have two choices for accessing causality:
through metaphysics' stitched causality schema, though we would have to whitelist this field
through causality's own graphql api. I'm in favor of this since it seems simpler for a future websocket graphql subscription to work with only one graphql api.
Assuming we query causality directly:
This will require fetching a special causality jwt via metaphysics, and then we should be able to query something like sale(id: id) { lots { ... } }. We won't have all data currently available to causality, so let's just take what makes sense.
A later stretch goal will be to figure out websocket subscriptions. For now the examples in the metaphysics hook using swr might be a good starting point.
The text was updated successfully, but these errors were encountered:
With our auction page loading all artworks in a sale, we now want to query the auction state from causality's graphQL api.
AC
Fill in the list of artworks with their current auction state from causality. We don't need to fit the whole state in every list item.
Notes
We have two choices for accessing causality:
Assuming we query causality directly:
This will require fetching a special causality jwt via metaphysics, and then we should be able to query something like
sale(id: id) { lots { ... } }
. We won't have all data currently available to causality, so let's just take what makes sense.A later stretch goal will be to figure out websocket subscriptions. For now the examples in the metaphysics hook using swr might be a good starting point.
The text was updated successfully, but these errors were encountered: