question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mapping of custom scalars

See original GitHub issue

I am using hasura graphql api and for dates it generates custom scalars like date and timestamptz, which get mapped to the same types in F#, but there are no such types in F# 🙂

Is there any way to provide custom mapping for those scalar types to F# types? I would happy even with strings there, but for now nothing compiles 🙂

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
MargaretKrutikovacommented, Jul 13, 2020

Just verified that everything works properly with the new version. Thanks a lot for your hard work! 🙂

0reactions
Zaid-Ajajcommented, Jul 12, 2021

@Numpsy I’ve fixed this issue in latest Snowflaqe v1.27 it should now handle Long as int64 please give it a try and confirm whether it works for you or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom scalars - Apollo GraphQL Docs
The GraphQL specification includes default scalar types · To define a custom scalar, add it to your schema like so: · You can...
Read more >
Custom scalar types in Apollo Kotlin
To interact with custom scalars in your Apollo Kotlin app, you need to define a mapping in your build.gradle[.kts] file. This tells Apollo...
Read more >
Mapping GraphQL scalar types to Go types
Maps an arbitrary GraphQL value to a interface{} Go type. Custom scalars with user defined types. For user defined types you can implement...
Read more >
How can I manually map apollo custom scalars to client ...
You need to manually map the custom scalars. The apollo github issue for this is here. There are a few plugins mentioned in...
Read more >
Custom Scalars and Enums – GraphQL Tools
Add custom scalar and enum types to your graphql-tools generated schema.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found