Join Slack
Powered by
how do i use custom scalars in a .graphql file?
# orm-help
b
bob
05/25/2020, 10:56 PM
how do i use custom scalars in a .graphql file?
r
Ryan
05/26/2020, 7:34 AM
Hey Bob 👋 You can define a custom scalar like this in a
.graphql
file:
Copy code
scalar JSON type Query { data: JSON }
And then you can write the specified resolvers for this in your resolvers file.
2
Views
Open in Slack
Previous
Next