You can insert the document specifying `overwrite=true` in the options:
https://github.com/arangodb/arangodb-java-driver/blob/1cbfd30458b050f49fac90297cd6ce536f672a34/src/test/java/com/arangodb/ArangoCollectionTest.java#L152


On Friday, 14 February 2020 20:15:29 UTC+1, Rob Gratz wrote:
>
> What is the equivalent when using the Java driver? I see an insert method 
> and a replace method.
>
>
>
> On Thursday, December 26, 2019 at 7:19:14 AM UTC-7, Martijn Geers wrote:
>>
>> Sounds to me like you mean upsert? 
>> https://www.arangodb.com/docs/3.5/aql/operations-upsert.html 
>>
>> On Wednesday, 18 December 2019 20:47:29 UTC+1, Bryan Webb wrote:
>>>
>>> What would the equivalent be in arangodb AQL.
>>> If not found create the document.
>>>
>>> Regards
>>> Bryan Webb
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/arangodb/d043d48d-b06e-4d29-b7ac-89a7352fb8a8%40googlegroups.com.

Reply via email to