-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Let's say I'm working on my BCaaS app (bean counter as a service). My only inputs are Int
s and my only return values are Int
s. Should my schema still contain GraphQL scalars like String
and Float
? Or is it appropriate to leave those types out, since they aren't used?
It looks like graphql-js leaves out unused scalars. This approach makes sense to me. GraphQL's predefined scalars aren't "universals", instead, they're saving the user a step of defining their own. In that way, like an unused custom scalar, if a predefined scalar isn't used, it's not present in the schema.
Is that intended? Or should all GraphQL schemas contain the predefined scalar types?
stubailo
Metadata
Metadata
Assignees
Labels
No labels