how do i use custom scalars in a .graphql file?
# orm-help
b
how do i use custom scalars in a .graphql file?
r
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.