2020-07-06
1239
#graphql#node#react
Ibrahima Ndaw
21257
Jul 6, 2020 ⋅ 4 min read

Complete guide to GraphQL Playground

Ibrahima Ndaw JavaScript enthusiast, full-stack developer, and blogger who also dabbles in UI/UX design.

Recent posts:

Understanding Security In React Native Applications

Understanding security in React Native applications

Explore the various security threats facing React Native mobile applications and how to mitigate them.

Wisdom Ekpotu
Mar 27, 2024 ⋅ 10 min read
Warp Adoption Guide: Overview, Examples, And Alternatives

warp adoption guide: Overview, examples, and alternatives

The warp web framework for Rust offers many enticing features. Let’s see when and why you should consider using warp in your projects.

Ukeje Goodness
Mar 26, 2024 ⋅ 8 min read
Integrating Next Js And Signalr For Enhanced Real Time Web App Capabilities

Integrating Next.js and SignalR to build real-time web apps

In this tutorial, you’ll learn how to integrate Next.js and SignalR to build an enhanced real-time web application.

Clara Ekekenta
Mar 25, 2024 ⋅ 8 min read
Exploring Tailwind Oxide

Exploring Tailwind Oxide

Tailwind Oxide was introduced to address common issues that exist with Tailwind CSS, such as the complex setup process.

Marie Starck
Mar 22, 2024 ⋅ 5 min read
View all posts

4 Replies to "Complete guide to GraphQL Playground"

  1. i tried following your details to embed playground in react app . it errors out with following

    ×
    ←→1 of 3 errors on the page
    TypeError: Cannot read properties of undefined (reading ‘indexOf’)
    Manager.getIndex
    node_modules/graphql-playground-react/node_modules/react-sortable-hoc/dist/commonjs/Manager.js:56
    53 | }, {
    54 | key: “getIndex”,
    55 | value: function getIndex(collection, ref) {
    > 56 | return this.refs[collection].indexOf(ref);
    | ^ 57 | }
    58 | }, {
    59 | key: “getOrderedRefs”,
    View compiled
    Manager.remove
    node_modules/graphql-playground-react/node_modules/react-sortable-hoc/dist/commonjs/Manager.js:30
    27 | }, {
    28 | key: “remove”,
    29 | value: function remove(collection, ref) {
    > 30 | var index = this.getIndex(collection, ref);
    | ^ 31 |
    32 | if (index !== -1) {
    33 | this.refs[collection].splice(index, 1);

  2. nvm , i see the issue was with version of react . i downgraded to 16.3 for both react & react-dom to 16.3.X and they worked . also redux i had to down grade to 6 .X from 7 that came with npx create-react-app

Leave a Reply