Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Dec 2, 2024
1 parent 9a85b26 commit 69ad0a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/sample_cql.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ LIMIT 100
MATCH p=SHORTEST 1 ()-[o:Owns]->(:Account)-[t:Tx]-()-[:OnRamp]->(user)
// use regex to exclude certain functions
WHERE NOT t.function =~ '(?i).*vouch.*'
// or better
/ WHERE NONE(r IN relationships(p) WHERE r.function IS NOT NULL AND r.function =~ '(?i).*vouch.*' )
// show the paths
return p
Expand Down
2 changes: 1 addition & 1 deletion src/enrich_exchange_onboarding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub async fn impl_batch_tx_insert(pool: &Graph, batch_txs: &[ExchangeOnRamp]) ->
// cypher queries makes it annoying to do a single insert of users and
// txs
let cypher_string = ExchangeOnRamp::cypher_batch_link_owner(&list_str);
dbg!(&cypher_string);
// dbg!(&cypher_string);

// Execute the query
let cypher_query = neo4rs::query(&cypher_string);
Expand Down

0 comments on commit 69ad0a3

Please sign in to comment.