Yes, it is pretty simple with an upsert or insert.

Insert into users {json} return <something>

On Tue, 31 Mar 2015 07:11 Kun Liu <[email protected]> wrote:

> Dear all,
>
> I wonder if OrientDB supports importing JSON-encoded data like ArangoDB?
> For example, I have the following file encoded in JSON:
>
> { "name" : { "first" : "John", "last" : "Connor" }, "active" : true, "age" : 
> 25, "likes" : [ "swimming"] }
> { "name" : { "first" : "Jim", "last" : "O'Brady" }, "age" : 19, "likes" : [ 
> "hiking", "singing" ] }
> { "name" : { "first" : "Lisa", "last" : "Jones" }, "dob" : "1981-04-09", 
> "likes" : [ "running" ] }
>
> To import these records, can I just put them into a file (with one line
> for each record to import) and run a one-line command like the following in
> ArangoDB?
>
> unix> arangoimp --file "data.json" --type json --collection "users"
>
> Thank you very much!
>
> Kun
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to