0.1.5 • Published 2 months ago

@codaline-io/create-apollo-error v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

create-apollo-error

smart helper to create errors for apollo server >=v4

Usage

import { createApolloError } from '@codaline-io/create-apollo-error'

throw createApolloError(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
0.1.2

2 months ago

0.1.4

2 months ago

0.1.3

2 months ago

0.1.5

2 months ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.1

2 years ago