fauna / faunadb-csharp

C# driver for FaunaDB v4
https://fauna.com
Other
61 stars 15 forks source link

Need Fauna 101 sample #122

Open csharpfritz opened 4 years ago

csharpfritz commented 4 years ago

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?

evbruno commented 4 years ago

Hi there, welcome to Fauna :)

Did you take a look at our tutorials ?

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

csharpfritz commented 4 years ago

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.

RamblingGeekUK commented 3 years ago

I thought it was just me

evbruno commented 3 years ago

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

RamblingGeekUK commented 3 years ago

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

evbruno commented 3 years ago

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