Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Fauna 101 sample #122

Open
csharpfritz opened this issue Oct 6, 2020 · 6 comments
Open

Need Fauna 101 sample #122

csharpfritz opened this issue Oct 6, 2020 · 6 comments

Comments

@csharpfritz
Copy link

csharpfritz commented Oct 6, 2020

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
Copy link
Contributor

evbruno commented Oct 6, 2020

Hi there, welcome to Fauna :)

Did you take a look at our tutorials ?

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

@csharpfritz
Copy link
Author

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
Copy link

I thought it was just me

@evbruno
Copy link
Contributor

evbruno commented Feb 1, 2021

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

@RamblingGeekUK
Copy link

RamblingGeekUK commented Feb 1, 2021

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
Copy link
Contributor

evbruno commented Feb 1, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants