@graphiql/plugin-query-builder
A first-party visual query builder plugin for GraphiQL.
Last updated 2 months ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @graphiql/plugin-query-builder 
SYNC missed versions from official npm registry.

@graphiql/plugin-query-builder

A first-party visual query builder plugin for GraphiQL. Build GraphQL queries by clicking through your schema instead of writing them by hand.

Pick fields from the schema and the operation in the editor stays in sync, both ways. It covers a schema tree with checkboxes, argument inputs (scalars, enums, lists, and input objects, including lists of input objects), promoting scalar arguments to variables, creating named fragments from a selection, and union/interface type-condition selectors. See #734 for the original feature request.

Install

npm install @graphiql/plugin-query-builder
# or
yarn add @graphiql/plugin-query-builder

Usage

import { GraphiQL } from 'graphiql';
import { QUERY_BUILDER_PLUGIN } from '@graphiql/plugin-query-builder';
import '@graphiql/plugin-query-builder/style.css';

function App() {
  return <GraphiQL plugins={[QUERY_BUILDER_PLUGIN]} fetcher={fetcher} />;
}

Known limitations

  • Aliases. The tree addresses fields by their schema name, so a hand-written document that aliases the same field twice (a: hero b: hero) matches the first occurrence. Editing acts on that one; full alias-aware editing is not supported yet.
  • Explicit null. The builder has no control for an explicit null argument, and treats an empty input as "remove this argument". A hand-written arg: null is therefore not preserved across an edit.

License

MIT

Current Tags

  • 1.0.0-beta.4                                ...           beta (2 months ago)
  • 1.0.1                                ...           latest (25 days ago)
  • 1.0.0-rc.3                                ...           rc (a month ago)

12 Versions

  • 1.0.1                                ...           25 days ago
  • 1.0.0                                ...           a month ago
  • 1.0.0-rc.3                                ...           a month ago
  • 1.0.0-rc.2                                ...           a month ago
  • 1.0.0-rc.1                                ...           2 months ago
  • 1.0.0-rc.0                                ...           2 months ago
  • 1.0.0-beta.4                                ...           2 months ago
  • 1.0.0-beta.3                                ...           2 months ago
  • 1.0.0-beta.2                                ...           2 months ago
  • 1.0.0-beta.1                                ...           3 months ago
  • 1.0.0-beta.0                                ...           3 months ago
  • 0.0.0                                ...           3 months ago
Downloads
Total 1
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE