Skip to content

Latest commit

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

create-apollo-error

smart helper to create errors for apollo server >=v4

Usage

import{createApolloError}from'@codaline-io/create-apollo-error'throwcreateApolloError(message,optionalErrorCode,optionalErrorType,optionalGraphQLErrorOptions)
  • optionalErrorCode?: string | null -> graphqlError.extensions.code
  • optionalErrorType?: string | null -> graphqlError.extensions.type
  • optionalGraphQLErrorOptions?: GraphQLErrorOptions, e.g. setting original error and so on

About

smart helper to create errors for apollo server >=v4

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages