Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@escape.tech/graphql-armor-block-field-suggestions

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@escape.tech/graphql-armor-block-field-suggestions

Block graphql field suggestion.

  • 1.2.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
36K
increased by4.52%
Maintainers
4
Weekly downloads
 
Created
Source

@escape.tech/graphql-armor-block-field-suggestions

This plugin will disable the suggestions in a GraphQL query.

GraphQL suggestions are messages (Did you mean ...) that help you adjusting your query.

This can lead to a Schema leak even if the introspection is disabled.

Getting Started

# npm
npm install @escape.tech/graphql-armor-block-field-suggestions

# yarn
yarn add @escape.tech/graphql-armor-block-field-suggestions

Usage example default

With @envelop/core from @the-guild-org

import { envelop } from '@envelop/core';
import { blockFieldSuggestions } from '@escape.tech/graphql-armor-block-field-suggestions';

const getEnveloped = envelop({
  plugins: [
    // ... other plugins ...
    blockFieldSuggestions(),
  ]
})

Usage example with custom mask

With @envelop/core from @the-guild-org

import { envelop } from '@envelop/core';
import { blockFieldSuggestions } from '@escape.tech/graphql-armor-block-field-suggestions';

const getEnveloped = envelop({
  plugins: [
    // ... other plugins ...
    blockFieldSuggestions({
        mask: '<[REDACTED]>'
    }),
  ]
})

FAQs

Package last updated on 02 Sep 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc