@envelop/apollo-server-errors 3.4.0 → 3.4.1-alpha-88024a80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -11,16 +11,17 @@ yarn add @envelop/apollo-server-errors
|
|
|
11
11
|
## Usage Example
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
import { envelop } from '@envelop/core'
|
|
15
|
-
import { useApolloServerErrors } from '@envelop/apollo-server-errors'
|
|
14
|
+
import { envelop } from '@envelop/core'
|
|
15
|
+
import { useApolloServerErrors } from '@envelop/apollo-server-errors'
|
|
16
16
|
|
|
17
17
|
const getEnveloped = envelop({
|
|
18
18
|
plugins: [
|
|
19
19
|
// ... other plugins ...
|
|
20
|
-
useApolloServerErrors({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
useApolloServerErrors({
|
|
21
|
+
// All fields are optional, and should match what you pass today to ApolloServer
|
|
22
|
+
debug: true, //
|
|
23
|
+
formatError: () => {}
|
|
24
|
+
})
|
|
25
|
+
]
|
|
26
|
+
})
|
|
26
27
|
```
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/apollo-server-errors",
|
|
3
|
-
"version": "3.4.0",
|
|
3
|
+
"version": "3.4.1-alpha-88024a80.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@envelop/core": "
|
|
6
|
+
"@envelop/core": "2.4.1-alpha-88024a80.0",
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|