New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@envelop/validation-cache

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/validation-cache

This plugins adds simple LRU caching to your `validate`, to improve performance by caching the validation result.


Version published
Weekly downloads
152K
decreased by-1.87%
Maintainers
1
Weekly downloads
 
Created

What is @envelop/validation-cache?

@envelop/validation-cache is a plugin for GraphQL that provides caching for validation results. This can significantly improve the performance of GraphQL servers by avoiding redundant validation of the same queries.

What are @envelop/validation-cache's main functionalities?

Validation Caching

This feature allows you to cache the results of GraphQL query validations. By using the `useValidationCache` plugin, you can avoid re-validating the same queries, thus improving performance.

const { envelop } = require('@envelop/core');
const { useValidationCache } = require('@envelop/validation-cache');

const getEnveloped = envelop({
  plugins: [
    useValidationCache(),
  ],
});

Other packages similar to @envelop/validation-cache

FAQs

Package last updated on 03 Mar 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