WWZOH45TLD6X4YGTMXSAP4W7WBYBKVTNU3WYWMMCI6FJRVRUYMJAC
def save_word(sentence_id, {word, als}) do
save_word(sentence_id, word)
save_word(sentence_id, als)
Bolt.Sips.query!(
Bolt.Sips.conn(),
"""
MATCH (w1:Word {word: $word1})
MATCH (w2:Word {word: $word2})
MERGE (w1) -[:ALIAS_OF]-> (w2)
MERGE (w1) <-[:ALIAS_OF]- (w2)
""",
%{word1: word, word2: als},
timeout: 25000
)
end