Skip to content

Instantly share code, notes, and snippets.

@omavi
omavi / GraphiQLExplorer.tsx
Created January 21, 2021 22:08 — forked from baohouse/GraphiQLExplorer.tsx
Fork of graphiql-explorer 0.4.5 to support list types and object-based custom args
/**
* Copied from https://github.com/OneGraph/graphiql-explorer (0.4.5)
* We fork because we need to support customizable fields and could not wait for
* the PR process to finish. Also converted Flow type to TypeScript.
*/
import { Tooltip } from 'antd';
import prettier from 'prettier/standalone';
import parserGraphql from 'prettier/parser-graphql';
import React, { Fragment } from 'react';