Skip to content
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.

Causality Graphql connection #3

Open
erikdstock opened this issue Nov 11, 2020 · 0 comments
Open

Causality Graphql connection #3

erikdstock opened this issue Nov 11, 2020 · 0 comments
Assignees
Labels
Causality Querying causality

Comments

@erikdstock
Copy link
Collaborator

erikdstock commented Nov 11, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Causality Querying causality
Projects
None yet
Development

No branches or pull requests

1 participant