-
I've been playing around with a steam pipe plugin (for learning, not actually useful at the moment), and was curious what folk there might to represent this relationship. I'm workin on a plugin for this API: https://studio.apollographql.com/public/star-wars-swapi/variant/current/home And I was curious what might be the cleanest way to model the connection. For instance, there are people, who have connections to movies, and starships. So my two questions probably are:
For instance, if someone did "select * from starwars_people", you'd get essentially the foreign keys for the movies. You could create a join table. But... it's be sparsely populated at that point. I'm also not sure how you'd fully populate it without a lot of calls. Anyway, was curious if any of the other plugins had similar patterns I could take a look at. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @misterek , great to hear you're creating a new plugin! We have a few plugins that are based off of a GraphQL API:
The GitHub and Linear plugins are newer and are using some of our updated patterns, so my suggestion would be to have a look at those first. As part of developing those plugins, we found out some ways to work well with GraphQL APIs in general and had created some guidelines (included below) that may be helpful. If you still have more questions, please let us know and we're happy to discuss more specifics! General
Page Size
Columns
Search Queries
|
Beta Was this translation helpful? Give feedback.
Hey @misterek , great to hear you're creating a new plugin!
We have a few plugins that are based off of a GraphQL API:
The GitHub and Linear plugins are newer and are using some of our updated patterns, so my suggestion would be to have a look at those first.
As part of developing those plugins, we found out some ways to work well with GraphQL APIs in general and had created some guidelines (included below) that may be helpful.
If you still have mo…