@graphql-codegen/fragment-matcher 3.3.1-alpha-33d33bf6b.0 → 3.3.1-alpha-ab1d4bbb7.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/package.json +2 -2
- package/typings/index.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/fragment-matcher",
|
|
3
|
-
"version": "3.3.1-alpha-
|
|
3
|
+
"version": "3.3.1-alpha-ab1d4bbb7.0",
|
|
4
4
|
"description": "graphql-code-generate plugin for generating fragments matcher introspection file",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "^2.6.
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "^2.6.1-alpha-ab1d4bbb7.0",
|
|
10
10
|
"tslib": "~2.4.0"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
package/typings/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { PluginFunction, PluginValidateFn } from '@graphql-codegen/plugin-helper
|
|
|
4
4
|
*
|
|
5
5
|
* If you are using `apollo-client` and your schema contains `interface` or `union` declaration, it's recommended to use Apollo's Fragment Matcher and the result generated by the plugin.
|
|
6
6
|
*
|
|
7
|
-
* You can read more about it in `apollo-client` documentation
|
|
7
|
+
* You can read more about it in [`apollo-client` documentation](https://apollographql.com/docs/react/data/fragments/#fragments-on-unions-and-interfaces).
|
|
8
8
|
*
|
|
9
9
|
* Fragment Matcher plugin accepts a TypeScript / JavaScript or a JSON file as an output _(`.ts, .tsx, .js, .jsx, .json`)_.
|
|
10
10
|
*
|
|
@@ -18,7 +18,7 @@ export interface FragmentMatcherConfig {
|
|
|
18
18
|
* @default es2015
|
|
19
19
|
*
|
|
20
20
|
* @exampleMarkdown
|
|
21
|
-
* ```yaml
|
|
21
|
+
* ```yaml {6}
|
|
22
22
|
* generates:
|
|
23
23
|
* path/to/file.json:
|
|
24
24
|
* plugins:
|
|
@@ -33,7 +33,7 @@ export interface FragmentMatcherConfig {
|
|
|
33
33
|
* @default 3
|
|
34
34
|
*
|
|
35
35
|
* @exampleMarkdown
|
|
36
|
-
* ```yaml
|
|
36
|
+
* ```yaml {6}
|
|
37
37
|
* generates:
|
|
38
38
|
* path/to/file.ts:
|
|
39
39
|
* plugins:
|
|
@@ -48,7 +48,7 @@ export interface FragmentMatcherConfig {
|
|
|
48
48
|
* @default false
|
|
49
49
|
*
|
|
50
50
|
* @exampleMarkdown
|
|
51
|
-
* ```yaml
|
|
51
|
+
* ```yaml {6}
|
|
52
52
|
* generates:
|
|
53
53
|
* path/to/file.ts:
|
|
54
54
|
* plugins:
|