-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Closed

Description
Description
If one adds in gatsby-config an option with key /*
(like: '/*': "SomeStuff"
) this leads to the following GraphQL warning:
Name "__" must not begin with "__", which is reserved by GraphQL introspection. In a future release of graphql this will become a hard error.
Notice that it does not matter to which plugin I pass this object.
Environment
Gatsby version: 1.9.153
Node.js version: 9.4.0
Operating System: Linux, Windows
File contents:
gatsby-config.js
:
plugins: [
{
resolve: `gatsby-source-filesystem`, // Just a demo, works for all plugins
options: {
path: `${__dirname}/src/pages`,
name: 'pages',
'/*': "SomeStuff" // This leads to warning
},
},
]
Actual result
The full warning text is in #2925
Expected behavior
No warning
Steps to reproduce
1. add the key '/*'
to a plugin-option
gilesbutler and DSchau
Metadata
Metadata
Assignees
Labels
No labels