Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/utilities/__tests__/buildASTSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ describe('Schema Materializer', () => {
type HelloScalars {
str: String
int: Int
float: Float
id: ID
bool: Boolean
}
`;
Expand Down Expand Up @@ -85,6 +87,10 @@ type TypeTwo {
var body = `
type Hello {
str(int: Int): String
floatToStr(float: Float): String
idToStr(id: ID): String
booleanToStr(bool: Boolean): String
strToStr(bool: String): String
}
`;
var output = cycleOutput(body, 'Hello');
Expand Down
2 changes: 2 additions & 0 deletions src/utilities/buildASTSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import {
GraphQLInputObjectType,
GraphQLString,
GraphQLInt,
GraphQLFloat,
GraphQLBoolean,
GraphQLID,
GraphQLList,
Expand Down Expand Up @@ -115,6 +116,7 @@ export function buildASTSchema(
var innerTypeMap = {
String: GraphQLString,
Int: GraphQLInt,
Float: GraphQLFloat,
Boolean: GraphQLBoolean,
ID: GraphQLID,
};
Expand Down