coronabytes / dotnet-arangodb

.NET Driver for ArangoDB
Apache License 2.0
66 stars 18 forks source link

LINQ Query Document Delete #45

Closed Snotax closed 2 years ago

Snotax commented 2 years ago

Hi, I just wanted to ask if deleting a document with LINQ is possible. I didn't find anything in the documentation or the tests.

Something like: .Where(t => t.Key== "").DeleteAsync()

Thanks for your help!

coronabytes commented 2 years ago
await Arango.Query<Project>("test")
.Where(x => x.Name == "Project A")
.Remove().In<Project>().Select(x=>x.Key).ToListAsync();