Skip to content

GraphQLPlayground options like fixedEndpoint, shareEnabled not working #865

@marceloverdijk

Description

@marceloverdijk

This issue pertains to the following package(s):

  • GraphQL Playground - Electron App
  • GraphQL Playground HTML
  • GraphQL Playground
  • GraphQL Playground Express Middleware
  • GraphQL Playground Hapi Middleware
  • GraphQL Playground Koa Middleware
  • GraphQL Playground Lambda Middleware

What OS and OS version are you experiencing the issue(s) on?

macOS Mojava

What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?

master

What is the expected behavior?

Configuration options picked up.

What is the actual behavior?

Configuration options not picked up.

What steps may we take to reproduce the behavior?

  <script>window.addEventListener('load', function (event) {
      GraphQLPlayground.init(document.getElementById('root'), {
        // options as 'endpoint' belong here
      })
    })</script>

to e.g.

  <script>window.addEventListener('load', function (event) {
      GraphQLPlayground.init(document.getElementById('root'), {
        endpoint: 'https://mycom.com/graphql',
        fixedEndpoint: true,
        isReloadingSchema: false,
        shareEnabled: false
      })
    })</script>

Although fixedEndpoint and shareEnabled are set to appropriate values the endpoint is still editable and the share button displayed (as can be seen in screenshot below).

Please provide a gif or image of the issue for a quicker response/fix.

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions