Schema representation
Closed this issue · 2 comments
Lisser commented
Story: Schema representation
- Load GraphQL DDL from Plugin Repo / Katalogus
- Validation
- Load into an internal representation
- Transform into Octopoes-ready representation. E.g.:
- Backlinks
- (De)serialization to XTDB for historical preservation
Darwinkel commented
I will investigate good methods / strategies for loading the GraphQL schema's into an in-memory representation, for example through data classes or pydantic.
My intuition is that Python-native data classes would be sufficient, provided we build a good validator+unittests to enforce that they match the schemas.