Solved maybe there is another way but this solved my problem
FOR u IN users FILTER u.email= "t...@test.com" UPDATE u WITH { name: "JohnSmith" } IN users On Tuesday, October 9, 2018 at 11:00:12 AM UTC+2, Iro wrote: > > > > I want to update some fileds in a document but without knowing "_key" > > I want to make a query as in Mysql or Oracle > > mysql > UPDATE users > SET name = "John Smith" > WHERE email= "t...@test.com"; > > arangodb first try > UPDATE { email: "t...@test.com"} > WITH { name: "JohnSmith"} > in users > (error showed Query: AQL: missing document key (while executing)) > > arangodb second try > REPLACE{ email: "t...@test.com"} > WITH { name: "JohnSmith"} > in users > (error showed Query: AQL: missing document key (while executing)) > > Where to find more information about this issue and how can i make this > query > > Best > -- 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 arangodb+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.