Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Object {
"date": "1984",
"title": "The world of slash and adventure",
},
"hair": 2,
"hair": 2048,
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe(`GraphQL type inferance`, () => {
id: `boo`,
name: `The Mad Wax`,
type: `Test`,
hair: 2,
hair: 2048,
date: `1984-10-12`,
anArray: [1, 2, 5, 4],
aNestedArray: [[1, 2, 3, 4]],
Expand Down
3 changes: 0 additions & 3 deletions packages/gatsby/src/schema/infer-graphql-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ export type ProcessedNodeType = {
}

const ISO_8601_FORMAT = [
`YYYY`,
`YYYY-MM`,
`YYYY-MM-DD`,
`YYYYMMDD`,
`YYYY-MM-DDTHHZ`,
`YYYY-MM-DDTHH:mmZ`,
`YYYY-MM-DDTHHmmZ`,
Expand All @@ -59,7 +57,6 @@ const ISO_8601_FORMAT = [
`YYYY-[W]WW-E`,
`YYYY[W]WWE`,
`YYYY-DDDD`,
`YYYYDDDD`,
]

function inferGraphQLType({
Expand Down