2.0.0 • Published 22 days ago

@graphiql/plugin-explorer v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
22 days ago

GraphiQL Explorer Plugin

This package provides a plugin that integrated the GraphiQL Explorer into the GraphiQL UI.

Install

Use your favorite package manager to install the package:

npm i -S @graphiql/plugin-explorer

The following packages are peer dependencies, so make sure you have them installed as well:

npm i -S react react-dom graphql

Usage

import { explorerPlugin } from '@graphiql/plugin-explorer';
import { createGraphiQLFetcher } from '@graphiql/toolkit';
import { GraphiQL } from 'graphiql';
import { useState } from 'react';

import 'graphiql/graphiql.css';
import '@graphiql/plugin-explorer/dist/style.css';

const fetcher = createGraphiQLFetcher({
  url: 'https://swapi-graphql.netlify.app/.netlify/functions/index',
});

// pass the explorer props here if you want
const explorer = explorerPlugin();

return <GraphiQL fetcher={fetcher} plugins={[explorer]} />;

CDN bundles

You can also use this plugin with unpkg, jsdelivr, and other CDNs.

See the example HTML file for this plugin

2.0.0

22 days ago

1.0.4

25 days ago

1.0.3

3 months ago

0.3.0

10 months ago

0.3.5

7 months ago

0.3.2

10 months ago

0.3.1

10 months ago

0.3.4

9 months ago

0.3.3

9 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

10 months ago

0.2.0

10 months ago

0.1.21-alpha.1

10 months ago

0.1.21

10 months ago

0.1.22

10 months ago

0.1.21-alpha.0

11 months ago

0.1.20

11 months ago

0.1.16

12 months ago

0.1.17

12 months ago

0.1.18

12 months ago

0.1.19

11 months ago

0.1.15

1 year ago

0.1.14

1 year ago

0.1.10

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.8

1 year ago

0.1.7

2 years ago

0.1.9

1 year ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago