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:

Implementing Infinite Scroll In Next Js With Server Actions

Implementing infinite scroll in Next.js with Server Actions

Infinite scrolling in Next.js no longer requires external libraries — Server Actions let us fetch initial data directly on the server.

Rahul Chhodde
Apr 19, 2024 ⋅ 10 min read
Integrating Django Templates With React For Dynamic Webpages

Integrating Django templates with React for dynamic webpages

Create a dynamic demo blog site using Django and React to demonstrate Django’s server-side functionalities and React’s interactive UI.

Kayode Adeniyi
Apr 18, 2024 ⋅ 7 min read
Using Aoi Js To Build A Bot For Discord

Using aoi.js to build a bot on Discord

Explore how the aoi.js library makes it easy to create Discord bots with useful functionalities for frontend applications.

Rahul Padalkar
Apr 17, 2024 ⋅ 9 min read
Web Components Adoption Guide: Overview, Examples, And Alternatives

Web Components adoption guide: Overview, examples, and alternatives

Evaluate Web Components, a set of standards that allow you to create custom HTML tags for more reusable, manageable code.

Elijah Asaolu
Apr 16, 2024 ⋅ 11 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