fsprojects / FSharp.Data.GraphQL

FSharp implementation of Facebook GraphQL query language.
http://fsprojects.github.io/FSharp.Data.GraphQL/
MIT License
395 stars 72 forks source link

Support more GraphQL scalars #310

Open xperiandri opened 3 years ago

xperiandri commented 3 years ago

Looks like GraphQL supports more scalars then FSharp.Data.GraphQL https://graphql-dotnet.github.io/docs/getting-started/schema-types#scalars

Or they just did that in C# implementation?

Horusiath commented 3 years ago

@xperiandri GraphQL is not restricted to one platform and it's designed to work with common subset of types (that are eventually representable in JSON). These common types are supported by all GraphQL libraries (including this one), and they are listed at the beginning of the document you've linked.

That being said, .NET standard library has wider area of types, and not all of them are supported in this implementation - mostly to keep it aligned with the standard. Relaxing on the standard means that other platforms may not understand schema of your service out of the box. That being said, I think this could probably be a good point for contributions as it's a worthwhile goal and fairly easy to implement.