{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/graphql/issues/222","repository_url":"https://api.github.com/repos/facebook/graphql","labels_url":"https://api.github.com/repos/facebook/graphql/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/facebook/graphql/issues/222/comments","events_url":"https://api.github.com/repos/facebook/graphql/issues/222/events","html_url":"https://github.com/facebook/graphql/issues/222","id":184523647,"number":222,"title":"Should _all_ GraphQL scalars be present in a schema?","user":{"login":"rmosolgo","id":2231765,"avatar_url":"https://avatars.githubusercontent.com/u/2231765?v=3","gravatar_id":"","url":"https://api.github.com/users/rmosolgo","html_url":"https://github.com/rmosolgo","followers_url":"https://api.github.com/users/rmosolgo/followers","following_url":"https://api.github.com/users/rmosolgo/following{/other_user}","gists_url":"https://api.github.com/users/rmosolgo/gists{/gist_id}","starred_url":"https://api.github.com/users/rmosolgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmosolgo/subscriptions","organizations_url":"https://api.github.com/users/rmosolgo/orgs","repos_url":"https://api.github.com/users/rmosolgo/repos","events_url":"https://api.github.com/users/rmosolgo/events{/privacy}","received_events_url":"https://api.github.com/users/rmosolgo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-21T16:09:07Z","updated_at":"2016-10-21T21:53:45Z","closed_at":null,"body":"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? \r\n\r\nIt 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.\r\n\r\nIs that intended? Or should all GraphQL schemas contain the predefined scalar types?"},"comment":{"url":"https://api.github.com/repos/facebook/graphql/issues/comments/255474577","html_url":"https://github.com/facebook/graphql/issues/222#issuecomment-255474577","issue_url":"https://api.github.com/repos/facebook/graphql/issues/222","id":255474577,"user":{"login":"stubailo","id":448783,"avatar_url":"https://avatars.githubusercontent.com/u/448783?v=3","gravatar_id":"","url":"https://api.github.com/users/stubailo","html_url":"https://github.com/stubailo","followers_url":"https://api.github.com/users/stubailo/followers","following_url":"https://api.github.com/users/stubailo/following{/other_user}","gists_url":"https://api.github.com/users/stubailo/gists{/gist_id}","starred_url":"https://api.github.com/users/stubailo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stubailo/subscriptions","organizations_url":"https://api.github.com/users/stubailo/orgs","repos_url":"https://api.github.com/users/stubailo/repos","events_url":"https://api.github.com/users/stubailo/events{/privacy}","received_events_url":"https://api.github.com/users/stubailo/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T21:53:45Z","updated_at":"2016-10-21T21:53:45Z","body":"I wonder if GraphQL lets you override the default scalars. I would guess \"no\" since they are used in introspection, which should be consistent across all servers?"}}
{"actor":{"display_login":"stubailo"}}