🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@envelop/apollo-server-errors

Package Overview
Dependencies
Maintainers
3
Versions
1559
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/apollo-server-errors

This plugin exposes the same error structure as `apollo-server`. Use this plugin if you are moving to Envelop, and wish to get a compatibility layer for your errors, to make sure the clients receive the same output.

latest
Source
npmnpm
Version
9.1.1
Version published
Weekly downloads
9.8K
-54.15%
Maintainers
3
Weekly downloads
 
Created
Source

@envelop/apollo-server-errors

This plugin exposes the same error structure as apollo-server. Use this plugin if you are moving to Envelop, and wish to get a compatibility layer for your errors, to make sure the clients receive the same output.

Getting Started

yarn add @envelop/apollo-server-errors

Usage Example

import { execute, parse, specifiedRules, subscribe, validate } from 'graphql'
import { useApolloServerErrors } from '@envelop/apollo-server-errors'
import { envelop, useEngine } from '@envelop/core'

const getEnveloped = envelop({
  plugins: [
    useEngine({ parse, validate, specifiedRules, execute, subscribe }),
    // ... other plugins ...
    useApolloServerErrors({
      // All fields are optional, and should match what you pass today to ApolloServer
      debug: true, //
      formatter: () => {}
    })
  ]
})

FAQs

Package last updated on 11 Feb 2026

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