Zaid-Ajaj / Snowflaqe

A dotnet CLI to generate type-safe GraphQL clients for F# and Fable with automatic deserialization, static query verification and type checking
MIT License
157 stars 26 forks source link

Merge GraphQL support efforts #30

Closed xperiandri closed 3 years ago

xperiandri commented 3 years ago

Currently we have your amaring client as generator and github.com/FSProjecrs/FSharp.Data.GraphQL as server and type provider. Maybe it worse to merge efforts and integrate both projects together?

Zaid-Ajaj commented 3 years ago

Hi there @xperiandri,

How do you imagine merging the efforts? To me, Snowflaqe is pretty much a standalone project for consuming GraphQL endpoints regardless of a specific backend type (FSharp.Data.GraphQL or otherwise).

I say standalone because the approach taken here is orthogonal to the type provider client from fsharp data GraphQL

Would be happy to accept PRs / contributions to Snowflaqe directly :wink:

xperiandri commented 3 years ago

I suppose that your code can be reused in GraphQL client type provider

Zaid-Ajaj commented 3 years ago

That won't work. The code used here generates records and union types which type providers ironically don't support. Not to mention making the type provider compatible with Fable is a huge pain in the back, compared to the situation now where things just work out of the box