def query_for_properties(command: str, properties: dict) -> List[dict]:
    """Create a query for a list of properties."""
    constraints = {}
    for k, v in properties.items():
        constraints.setdefault("all", {k: ["==", v]})
    query = [{command: {"results": {"all_properties": True}}}]
    if len(constraints) > 0:
        query[0][command]["constraints"] = constraints
    return query
Create a query for a list of properties.
llama-index-integrations/graph_stores/llama-index-graph-stores-ApertureDB/llama_index/graph_stores/ApertureDB/property_graph.py