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

Is there a todo sample? #463

Open
aggieben opened this issue Mar 7, 2024 · 7 comments
Open

Is there a todo sample? #463

aggieben opened this issue Mar 7, 2024 · 7 comments

Comments

@aggieben
Copy link

aggieben commented Mar 7, 2024

Description

Is there a todo sample anywhere? It's mentioned in the Getting Started section of the main site, but I don't see it in the repo.

image

@xperiandri
Copy link
Collaborator

@aggieben
Copy link
Author

aggieben commented Apr 4, 2024

No, I think I was looking for the server implementation. What backend would the apollo-client sample be targeted toward?

@xperiandri
Copy link
Collaborator

Yes, it is for the client type provider demo and tests only

@aggieben
Copy link
Author

aggieben commented Apr 4, 2024

Are there any simple server-side samples, or maybe even other projects that consume FSharp.DataGraphQL? I'm trying to build something simple in order to learn the lib, and I'm getting lost from the get-go. Doing the things in the "Getting Started" guide don't work and the Star Wars sample is too much.

If I need to, I can open a more detailed issue but I thought it was worth asking for other examples.

@valbers
Copy link
Collaborator

valbers commented Apr 4, 2024

I think you might be interested in taking a look at the new Giraffe integration. I just noticed that the documentation needs to be updated and the part with:

.UseGiraffe
 (HttpHandlers.handleGraphQL<Root>
    applicationLifetime.ApplicationStopping
    (loggerFactory.CreateLogger("FSharp.Data.GraphQL.Server.AspNetCore.HttpHandlers.handleGraphQL"))
 )

Should be

.UseGiraffe(HttpHandlers.graphQL<Root>)

@valbers
Copy link
Collaborator

valbers commented Apr 4, 2024

Related: #308

@xperiandri
Copy link
Collaborator

xperiandri commented Apr 5, 2024

This is the simplest demo
https://github.com/fsprojects/FSharp.Data.GraphQL/blob/releases/2.0.0/samples/relay-modern-starter-kit/server.fsx

Looks like it should be updated too 🙂
I mean paths in #r and variables deserialization code

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