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:

Using React Shepherd To Build A Site Tour

Using React Shepherd to build a site tour

React Shepherd stands out as a site tour library due to its elegant UI and out-of-the-box, easy-to-use React Context implementation.

Onuorah Bonaventure
May 1, 2024 ⋅ 14 min read
A Guide To Cookies In Next Js

A guide to cookies in Next.js

Cookies are crucial to web development. This article will explore how to handle cookies in your Next.js applications.

Georgey V B
Apr 30, 2024 ⋅ 10 min read
Handling Dates In JavaScript With Tempo

Handling dates in JavaScript with Tempo

Use the Tempo library to format dates and times in JavaScript while accounting for time zones, daylight saying time, and date internationalization.

Amazing Enyichi Agu
Apr 30, 2024 ⋅ 8 min read
A Guide To Deno.cron

A guide to Deno.cron

This guide explores how to use the cron package in Deno, `Deno.cron`, to handle scheduling tasks with specific commands.

Rosario De Chiara
Apr 29, 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