noctis.repository.neo4j.neo4j_queries.DeleteAllNodes¶
- pydantic model noctis.repository.neo4j.neo4j_queries.DeleteAllNodes[source]¶
Query to delete ChemicalEquation nodes based on the number of a particular relationship type
Show JSON schema
{ "title": "DeleteAllNodes", "description": "Query to delete ChemicalEquation nodes based on the number of a particular relationship type", "type": "object", "properties": { "query": { "default": null, "title": "Query", "type": "string" }, "graph_schema": { "anyOf": [ { "$ref": "#/$defs/GraphSchema" }, { "type": "null" } ], "default": { "base_nodes": { "chemical_equation": "ChemicalEquation", "molecule": "Molecule" }, "base_relationships": { "product": { "end_node": "molecule", "start_node": "chemical_equation", "type": "PRODUCT" }, "reactant": { "end_node": "chemical_equation", "start_node": "molecule", "type": "REACTANT" } }, "extra_nodes": {}, "extra_relationships": {} } }, "batch_size": { "default": 1000, "title": "Batch Size", "type": "integer" } }, "$defs": { "GraphSchema": { "additionalProperties": false, "description": "Base model representing the schema of a NOCtis graph", "properties": { "base_nodes": { "additionalProperties": { "type": "string" }, "default": { "chemical_equation": "ChemicalEquation", "molecule": "Molecule" }, "minProperties": 2, "title": "Base Nodes", "type": "object" }, "base_relationships": { "additionalProperties": { "additionalProperties": { "type": "string" }, "type": "object" }, "default": { "product": { "end_node": "molecule", "start_node": "chemical_equation", "type": "PRODUCT" }, "reactant": { "end_node": "chemical_equation", "start_node": "molecule", "type": "REACTANT" } }, "minProperties": 2, "title": "Base Relationships", "type": "object" }, "extra_nodes": { "additionalProperties": { "type": "string" }, "title": "Extra Nodes", "type": "object" }, "extra_relationships": { "additionalProperties": { "additionalProperties": { "type": "string" }, "type": "object" }, "title": "Extra Relationships", "type": "object" } }, "title": "GraphSchema", "type": "object" } } }
- Config:
arbitrary_types_allowed: bool = True
- Fields:
- Validators:
- field batch_size: int = 1000¶
- Validated by:
- field query: str = None¶
- Validated by:
- parameters_embedded: ClassVar[bool] = False¶
- query_args_optional: ClassVar[list[str]] = ['batch_size']¶
- query_args_required: ClassVar[list[str]] = []¶
- query_name: ClassVar[str] = 'delete_all_nodes'¶
- query_type: ClassVar[str] = 'modify_graph'¶