minvws/nl-kat-octopoes

Schema representation

Closed this issue · 2 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.

Lisser commented

Implemented in #46