diff --git a/GranefAPI/routers/graph_queries.py b/GranefAPI/routers/graph_queries.py index 9adb4b077df51ec7f7e5eca749d196d438e296f8..82cb04e1148d9d1448504a13c1dd42b9344a39ce 100644 --- a/GranefAPI/routers/graph_queries.py +++ b/GranefAPI/routers/graph_queries.py @@ -97,7 +97,7 @@ def attribute_search(request: query_models.AttributeValueQuery) -> dict: dgraph_client = DgraphClient() query = f"""{{ - attribute_search(func: has({request.attribute})) @filter(eq({request.attribute}, {request.value})) {{ + attribute_search(func: has({request.attribute})) @filter(eq({request.attribute}, "{request.value}")) {{ expand(_all_) }} }}"""