Skip to content

Commit

Permalink
[schema] Disable validation error about __id field.
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Feb 8, 2018
1 parent 09d2f17 commit 38be9dc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ IMPULSE_APPLICATION_ID=xxx_impulse_id_xxx
# Options
ENABLE_QUERY_TRACING=false
ENABLE_SCHEMA_STITCHING=false
GRAPHQL_NO_NAME_WARNING=true
NODE_ENV=test
PORT=5001
QUERY_DEPTH_LIMIT=10
Expand Down
1 change: 1 addition & 0 deletions src/schema/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ const convectionMutations = enableSchemaStitching
}

const schema = new GraphQLSchema({
allowedLegacyNames: ["__id"],
mutation: new GraphQLObjectType({
name: "Mutation",
fields: {
Expand Down
5 changes: 0 additions & 5 deletions src/test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
import dotenv from "dotenv"
dotenv.config({ path: ".env.test" })

// Because we use `__id` as a UUID identifier, then
// we have to tell GraphQL that we don't need a
// warning about our usage of this.
process.env.GRAPHQL_NO_NAME_WARNING = true

// Set up our globals
import sinon from "sinon"
global.sinon = sinon
Expand Down

0 comments on commit 38be9dc

Please sign in to comment.