From 5c6f66b127d54c50ee557446e53aa5fbbd17fa20 Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Tue, 9 Jun 2020 00:55:22 -0400 Subject: [PATCH] feat: Add specifiedByUrl (#271) --- .travis.yml | 1 + src/index.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 08b28fa..1646305 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: node_js node_js: - node + - lts/* cache: yarn: true diff --git a/src/index.js b/src/index.js index 5c60be7..6f504f4 100644 --- a/src/index.js +++ b/src/index.js @@ -52,6 +52,8 @@ export const GraphQLJSON = new GraphQLScalarType({ name: 'JSON', description: 'The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).', + specifiedByUrl: + 'http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf', serialize: identity, parseValue: identity, parseLiteral: (ast, variables) => parseLiteral('JSON', ast, variables), @@ -63,6 +65,8 @@ export const GraphQLJSONObject = new GraphQLScalarType({ name: 'JSONObject', description: 'The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).', + specifiedByUrl: + 'http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf', serialize: ensureObject, parseValue: ensureObject, parseLiteral: (ast, variables) => {