memgraph / gqlalchemy

GQLAlchemy is a library developed with the purpose of assisting in writing and running queries on Memgraph. GQLAlchemy supports high-level connection to Memgraph as well as modular query builder.
https://pypi.org/project/gqlalchemy/
Apache License 2.0
225 stars 32 forks source link

Schema creation and validation #44

Closed MasterMedo closed 2 years ago

MasterMedo commented 2 years ago

Memgraph is schemaless, but some use-cases require strict validation rules. Instead of enforcing the schema in Memgraph, the user should be able to enforce it easily in GQLAlchemy. With pydantic we should be able to add schema validation to the graph objects.

MasterMedo commented 2 years ago

This is completed, users can create their validation rules using the pydantic's Field function and their validators.