Skip to content

Commit fb7144f

Browse files
committed
Fix update with graph query predicate syntax
1 parent b6355ff commit fb7144f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/samples/graph_snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ def update_data_with_graph_query_in_dml(instance_id, database_id):
292292
def update_accounts(transaction):
293293
row_ct = transaction.execute_update(
294294
"UPDATE Account SET is_blocked = true "
295-
"WHERE id IN ("
295+
"WHERE id IN {"
296296
" GRAPH FinGraph"
297297
" MATCH (a:Account WHERE a.id = 1)-[:TRANSFERS]->{1,2}(b:Account)"
298-
" RETURN b.id)"
298+
" RETURN b.id}"
299299
)
300300

301301
print("{} record(s) updated.".format(row_ct))

0 commit comments

Comments
 (0)