Skip to content

"/*" as key leads to GraphQL warning #3487

@ghost

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions