@envelop/fragment-arguments 3.4.0-alpha-26c4ae2.0 → 3.4.0-alpha-8a8cd36.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 +27 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
## `@envelop/fragment-arguments`
|
|
2
|
+
|
|
3
|
+
This plugins replaces the default GraphQL `parser` with an extended version that supports setting arguments on fragments.
|
|
4
|
+
|
|
5
|
+
For reference, see: https://github.com/graphql/graphql-js/pull/3152
|
|
6
|
+
|
|
7
|
+
PLEASE DON'T USE THIS IN PRODUCTION!
|
|
8
|
+
|
|
9
|
+
## Getting Started
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
yarn add @envelop/fragment-arguments
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage Example
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { envelop } from '@envelop/core';
|
|
19
|
+
import { useFragmentArguments } from '@envelop/fragment-arguments';
|
|
20
|
+
|
|
21
|
+
const getEnveloped = envelop({
|
|
22
|
+
plugins: [
|
|
23
|
+
// ... other plugins ...
|
|
24
|
+
useFragmentArguments(),
|
|
25
|
+
],
|
|
26
|
+
});
|
|
27
|
+
```
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/fragment-arguments",
|
|
3
|
-
"version": "3.4.0-alpha-
|
|
3
|
+
"version": "3.4.0-alpha-8a8cd36.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@envelop/core": "2.4.0-alpha-
|
|
5
|
+
"@envelop/core": "2.4.0-alpha-8a8cd36.0",
|
|
6
6
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {},
|