New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@graphiql/plugin-query-builder

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphiql/plugin-query-builder

A first-party visual query builder plugin for GraphiQL.

beta
npmnpm
Version
1.0.0-beta.1
Version published
Weekly downloads
63
186.36%
Maintainers
4
Weekly downloads
 
Created
Source

@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

Keywords

react

FAQs

Package last updated on 29 Aug 2026

Related posts