FSharp.Data.GraphQL
FSharp.Data.GraphQL copied to clipboard
Is there a todo sample?
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.
Do you mean this file? https://github.com/fsprojects/FSharp.Data.GraphQL/blob/246d6c037a26e1f91fdbd8c373634f55aa74f4d7/samples/apollo-client/README.md
No, I think I was looking for the server implementation. What backend would the apollo-client sample be targeted toward?
Yes, it is for the client type provider demo and tests only
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.
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>)
Related: #308
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