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
I think the biggest problem w/ the client library is its maintainability. As the subgraph schema changes (new properties, name changes, entity connections / edges), the client library has to be manually updated to reflect all of these changes. I propose that we auto-generate as much as we can. Here’s how.
The entity classes have 3 key pieces: Read, Write, Search
Read & Search can be generated
Write will be hand authored
I’d also love to lend a hand in writing this code generator, just holler :) I don’t think it’d take that long to implement (1-2 weeks), since GraphQL AST parsing libraries exist.
Subgraph Schema (Hand Authored):
State + Search (Auto-Generated):
Write (Hand Authored)
The text was updated successfully, but these errors were encountered: