@debugr/graphql-formatter
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

GraphQL request formatter plugin for Debugr

Plugin ID: graphql

This is a formatter plugin, which means that when Debugr is creating a dump file for a given logger, this plugin will be used for any entries with the plugin attribute matching this plugin's ID. Such entries will typically be created by another plugin, but you can also create them manually by specifying the plugin ID as the very first argument to logger.log() (before level). See below for the required shape of the data this plugin expects to find in an entry.

The plugin doesn't have any options and you don't need to install or configure it yourself as it will be done automatically if it is needed.

Required entry data

export type GraphQLData = {
  query: string;
  operation?: string;
  variables?: Record<string, any>;
};

Readme

Keywords

none

Package Sidebar

Install

npm i @debugr/graphql-formatter

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

11.2 kB

Total Files

8

Last publish

Collaborators

  • jahudka
  • marek.fiala