arangoclient.net icon indicating copy to clipboard operation
arangoclient.net copied to clipboard

Question about async querying.

Open actias opened this issue 8 years ago • 6 comments

So far this library is perfect when inserting, updating or deleting objects asynchronously, however, when I try and do FirstOrDefaultAsync() I get an error that the collection doesn't support it. Am I missing something?

actias avatar Jun 03 '16 06:06 actias

@actias no you dont miss anything, its not implemented yet. queries(cursors and linq) have only ToListAsync async method, i will add other async methods in a day or two. i will inform you here when its done

ra0o0f avatar Jun 03 '16 06:06 ra0o0f

Awesome thanks! Anything I can do to help/work on?

actias avatar Jun 03 '16 07:06 actias

@actias i added FirstAsync & SingleAsync for now

AverageAsync, CountAsync, MaxAsync, SumAsync are not implimented yet.

if this is ok for now then i will update nuget packages?

i wont close the issue so i will add the other async methods in the future

ra0o0f avatar Jun 03 '16 10:06 ra0o0f

Wow. Thanks for the quick turn around! Let me know if there's anything I can do to contribute. I'm new to ArangoDB but am fairly adept at EF, LINQ and SQL.

actias avatar Jun 03 '16 13:06 actias

@actias thanks, since you been working with the EF, LINQ you can be a great help to adapt people from EF. currently the driver lacks good documentation any work on that would be great . Or you could work with the API and see how it would be better if we implement the API interface another way.

ra0o0f avatar Jun 04 '16 07:06 ra0o0f

If you're at all interested, I just started an ArangoDB.AspNet.Indentity project using your client as a base. It acts as a fully features IUserStore against ArangoDB. I'm still tweaking it, but it works great.

Thanks for all the work you've put into this.

actias avatar Jun 06 '16 07:06 actias