Skip to navigation
Check if a document exists with aql arangodb python
22.05.25
```python client = ArangoClient(hosts="https://graph.neriene.com") db = client.db(self.db, username=self.user, password=self.password) sql = """ FOR doc IN thai_phrases FILTER doc.en.text=='{0}' LIMIT 1 RETURN doc """.format(self.text_from) print(sql) c = db.aql.execute(sql) if c.empty() == False: doc = c.batch()[0] return True else: return False ```
https://sails-arangojs.netlify.app/docs/crudmethods/find
Reply
Anonymous
Information Epoch 1752305496
Use lower case and keep it short.
Home
Notebook
Contact us