Skip to content

Fixes issue #104 with buildASTSchema and Float fields #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2015
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