apollographql / gatsby-theme-apollo

💜 Themes that we use to build Gatsby sites at Apollo
MIT License
370 stars 102 forks source link

Embeddable Explorer Component #220

Closed mayakoneval closed 3 years ago

mayakoneval commented 3 years ago

Context

We want to add a general embeddable explorer component. Note that this should not be used for the marketing front page (I think there are some specific things built into to the DORA explorer on the marketing front page?)

This component takes a graph ref and a style object and renders an embedded explorer with that public graph's schema, relaying network requests via the parent page, with the styles applied to the iframe. This component relays all network requests to the urls provided (https / subscription urls), and support queries, mutation and subscriptions via subscription-transport-ws.

StephenBarlow commented 3 years ago

This looks great to me! I'd like @trevorblades to take a look as well because I'm not a code-review-caliber React convention knower 😄

trevorblades commented 3 years ago

Looks great @mayakoneval! Thanks so much 😁