Schema representation
Lisser opened this issue · comments
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
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.
Implemented in #46