faunadb-csharp icon indicating copy to clipboard operation
faunadb-csharp copied to clipboard

Need Fauna 101 sample

Open csharpfritz opened this issue 4 years ago • 6 comments

I'm new to Fauna and having a VERY hard time understanding how to query and return a collection of objects.

In EntityFramework I would access a property on my database connection like:

dbContext.MyCollectionName

and be able to interact with the contents with LINQ syntax. I struggle to find the right combination of Query(Paginate(Match()))).To<MyObject[]>().Value to get objects read from Fauna. Can we put together a simple example document that shows Fauna 101 for each of the CRUD operations?

csharpfritz avatar Oct 06 '20 16:10 csharpfritz

Hi there, welcome to Fauna :)

Did you take a look at our tutorials ?

https://docs.fauna.com/fauna/current/tutorials/crud?lang=csharp

evbruno avatar Oct 06 '20 17:10 evbruno

Yes, and I struggled with them for 3 hours. They are not linked on the homepage of this repository, it was very hard to find and does not cover the scenario I'm looking for help with.

csharpfritz avatar Oct 06 '20 17:10 csharpfritz

I thought it was just me

RamblingGeekUK avatar Jan 29 '21 23:01 RamblingGeekUK

Isn't that example working for you guys? How do you think we could improve it?

evbruno avatar Feb 01 '21 13:02 evbruno

For me the example the data comes back as an array and there doesn't appear to be a way to make it an object ? I thought this was going to be the way https://docs.fauna.com/fauna/current/api/fql/functions/toobject?lang=csharp

RamblingGeekUK avatar Feb 01 '21 13:02 RamblingGeekUK

btw, I would like to invite you guys to join our Forums at https://forums.fauna.com/

evbruno avatar Feb 01 '21 13:02 evbruno