Socket
Socket
Sign inDemoInstall

@gql-vis/exporter

Package Overview
Dependencies
3
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @gql-vis/exporter

- This is the official [GraphQL Analyzer](https://graphqlanalyzer.com/) exporter.


Version published
Maintainers
2
Install size
98.1 kB
Created

Readme

Source

@gql-vis/exporter

  • This is the official GraphQL Analyzer exporter.

You should use the exporter if you want to extend the plugin ecosystem or you want to send custom API calls and responses to your collector.

Installation

npm install @gql-vis/exporter

Usage

import { Exporter } from "@gql-vis/exporter";

const exporter = new Exporter({
  apiKey: `YOUR-API-KEY`,
  url: `https://app.graphqlanalyzer.com/api/v1/collector`,
});

const payload = {
  body: {
    query: `query { hello }`,
    params: {},
  },
  headers: {},
  method: "POST",
  type: "GRAPHQL",
  url: "http://127.0.0.1:5000/graphql",
};

const { givenUUID } = exporter.apiCall(payload);

// Do the network call here

exporter.apiResponse({
  body: {
    data: {
      hello: "world",
    },
  },
  givenUUID,
  statusCode: 200,
});

License

MIT - https://graphqlvisualizer.com/

FAQs

Last updated on 25 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc