@isograph/react 0.0.0-main-29e04a3a → 0.0.0-main-4ed3a229
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/.turbo/turbo-compile-typescript.log +1 -1
- package/package.json +4 -4
- package/src/tests/__isograph/Query/meName/entrypoint.ts +1 -23
- package/src/tests/__isograph/Query/meName/normalization_ast.ts +25 -0
- package/src/tests/__isograph/Query/meNameSuccessor/entrypoint.ts +1 -54
- package/src/tests/__isograph/Query/meNameSuccessor/normalization_ast.ts +56 -0
- package/src/tests/__isograph/Query/nodeField/entrypoint.ts +1 -28
- package/src/tests/__isograph/Query/nodeField/normalization_ast.ts +30 -0
- package/src/tests/__isograph/Query/subquery/entrypoint.ts +1 -36
- package/src/tests/__isograph/Query/subquery/normalization_ast.ts +38 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @isograph/react@0.0.0-main-
|
|
2
|
+
> @isograph/react@0.0.0-main-4ed3a229 compile-typescript /Users/runner/work/isograph/isograph/libs/isograph-react
|
|
3
3
|
> rm -rf dist/* && tsc -p tsconfig.pkg.json
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isograph/react",
|
|
3
|
-
"version": "0.0.0-main-
|
|
3
|
+
"version": "0.0.0-main-4ed3a229",
|
|
4
4
|
"description": "Use Isograph with React",
|
|
5
5
|
"homepage": "https://isograph.dev",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"iso-watch": "cross-env ../../target/debug/isograph_cli --config ./isograph.config.json --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@isograph/disposable-types": "0.0.0-main-
|
|
24
|
-
"@isograph/react-disposable-state": "0.0.0-main-
|
|
25
|
-
"@isograph/reference-counted-pointer": "0.0.0-main-
|
|
23
|
+
"@isograph/disposable-types": "0.0.0-main-4ed3a229",
|
|
24
|
+
"@isograph/react-disposable-state": "0.0.0-main-4ed3a229",
|
|
25
|
+
"@isograph/reference-counted-pointer": "0.0.0-main-4ed3a229"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^18.0.0 || ^19.0.0"
|
|
@@ -3,31 +3,9 @@ import {Query__meName__param} from './param_type';
|
|
|
3
3
|
import {Query__meName__output_type} from './output_type';
|
|
4
4
|
import readerResolver from './resolver_reader';
|
|
5
5
|
import queryText from './query_text';
|
|
6
|
+
import normalizationAst from './normalization_ast';
|
|
6
7
|
const nestedRefetchQueries: RefetchQueryNormalizationArtifactWrapper[] = [];
|
|
7
8
|
|
|
8
|
-
const normalizationAst: NormalizationAst = {
|
|
9
|
-
kind: "NormalizationAst",
|
|
10
|
-
selections: [
|
|
11
|
-
{
|
|
12
|
-
kind: "Linked",
|
|
13
|
-
fieldName: "me",
|
|
14
|
-
arguments: null,
|
|
15
|
-
concreteType: "Economist",
|
|
16
|
-
selections: [
|
|
17
|
-
{
|
|
18
|
-
kind: "Scalar",
|
|
19
|
-
fieldName: "id",
|
|
20
|
-
arguments: null,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
kind: "Scalar",
|
|
24
|
-
fieldName: "name",
|
|
25
|
-
arguments: null,
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
};
|
|
31
9
|
const artifact: IsographEntrypoint<
|
|
32
10
|
Query__meName__param,
|
|
33
11
|
Query__meName__output_type,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type {NormalizationAst} from '@isograph/react';
|
|
2
|
+
const normalizationAst: NormalizationAst = {
|
|
3
|
+
kind: "NormalizationAst",
|
|
4
|
+
selections: [
|
|
5
|
+
{
|
|
6
|
+
kind: "Linked",
|
|
7
|
+
fieldName: "me",
|
|
8
|
+
arguments: null,
|
|
9
|
+
concreteType: "Economist",
|
|
10
|
+
selections: [
|
|
11
|
+
{
|
|
12
|
+
kind: "Scalar",
|
|
13
|
+
fieldName: "id",
|
|
14
|
+
arguments: null,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
kind: "Scalar",
|
|
18
|
+
fieldName: "name",
|
|
19
|
+
arguments: null,
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
};
|
|
25
|
+
export default normalizationAst;
|
|
@@ -3,62 +3,9 @@ import {Query__meNameSuccessor__param} from './param_type';
|
|
|
3
3
|
import {Query__meNameSuccessor__output_type} from './output_type';
|
|
4
4
|
import readerResolver from './resolver_reader';
|
|
5
5
|
import queryText from './query_text';
|
|
6
|
+
import normalizationAst from './normalization_ast';
|
|
6
7
|
const nestedRefetchQueries: RefetchQueryNormalizationArtifactWrapper[] = [];
|
|
7
8
|
|
|
8
|
-
const normalizationAst: NormalizationAst = {
|
|
9
|
-
kind: "NormalizationAst",
|
|
10
|
-
selections: [
|
|
11
|
-
{
|
|
12
|
-
kind: "Linked",
|
|
13
|
-
fieldName: "me",
|
|
14
|
-
arguments: null,
|
|
15
|
-
concreteType: "Economist",
|
|
16
|
-
selections: [
|
|
17
|
-
{
|
|
18
|
-
kind: "Scalar",
|
|
19
|
-
fieldName: "id",
|
|
20
|
-
arguments: null,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
kind: "Scalar",
|
|
24
|
-
fieldName: "name",
|
|
25
|
-
arguments: null,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
kind: "Linked",
|
|
29
|
-
fieldName: "successor",
|
|
30
|
-
arguments: null,
|
|
31
|
-
concreteType: "Economist",
|
|
32
|
-
selections: [
|
|
33
|
-
{
|
|
34
|
-
kind: "Scalar",
|
|
35
|
-
fieldName: "id",
|
|
36
|
-
arguments: null,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
kind: "Linked",
|
|
40
|
-
fieldName: "successor",
|
|
41
|
-
arguments: null,
|
|
42
|
-
concreteType: "Economist",
|
|
43
|
-
selections: [
|
|
44
|
-
{
|
|
45
|
-
kind: "Scalar",
|
|
46
|
-
fieldName: "id",
|
|
47
|
-
arguments: null,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
kind: "Scalar",
|
|
51
|
-
fieldName: "name",
|
|
52
|
-
arguments: null,
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
};
|
|
62
9
|
const artifact: IsographEntrypoint<
|
|
63
10
|
Query__meNameSuccessor__param,
|
|
64
11
|
Query__meNameSuccessor__output_type,
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type {NormalizationAst} from '@isograph/react';
|
|
2
|
+
const normalizationAst: NormalizationAst = {
|
|
3
|
+
kind: "NormalizationAst",
|
|
4
|
+
selections: [
|
|
5
|
+
{
|
|
6
|
+
kind: "Linked",
|
|
7
|
+
fieldName: "me",
|
|
8
|
+
arguments: null,
|
|
9
|
+
concreteType: "Economist",
|
|
10
|
+
selections: [
|
|
11
|
+
{
|
|
12
|
+
kind: "Scalar",
|
|
13
|
+
fieldName: "id",
|
|
14
|
+
arguments: null,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
kind: "Scalar",
|
|
18
|
+
fieldName: "name",
|
|
19
|
+
arguments: null,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
kind: "Linked",
|
|
23
|
+
fieldName: "successor",
|
|
24
|
+
arguments: null,
|
|
25
|
+
concreteType: "Economist",
|
|
26
|
+
selections: [
|
|
27
|
+
{
|
|
28
|
+
kind: "Scalar",
|
|
29
|
+
fieldName: "id",
|
|
30
|
+
arguments: null,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
kind: "Linked",
|
|
34
|
+
fieldName: "successor",
|
|
35
|
+
arguments: null,
|
|
36
|
+
concreteType: "Economist",
|
|
37
|
+
selections: [
|
|
38
|
+
{
|
|
39
|
+
kind: "Scalar",
|
|
40
|
+
fieldName: "id",
|
|
41
|
+
arguments: null,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
kind: "Scalar",
|
|
45
|
+
fieldName: "name",
|
|
46
|
+
arguments: null,
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
export default normalizationAst;
|
|
@@ -3,36 +3,9 @@ import {Query__nodeField__param} from './param_type';
|
|
|
3
3
|
import {Query__nodeField__output_type} from './output_type';
|
|
4
4
|
import readerResolver from './resolver_reader';
|
|
5
5
|
import queryText from './query_text';
|
|
6
|
+
import normalizationAst from './normalization_ast';
|
|
6
7
|
const nestedRefetchQueries: RefetchQueryNormalizationArtifactWrapper[] = [];
|
|
7
8
|
|
|
8
|
-
const normalizationAst: NormalizationAst = {
|
|
9
|
-
kind: "NormalizationAst",
|
|
10
|
-
selections: [
|
|
11
|
-
{
|
|
12
|
-
kind: "Linked",
|
|
13
|
-
fieldName: "node",
|
|
14
|
-
arguments: [
|
|
15
|
-
[
|
|
16
|
-
"id",
|
|
17
|
-
{ kind: "Variable", name: "id" },
|
|
18
|
-
],
|
|
19
|
-
],
|
|
20
|
-
concreteType: null,
|
|
21
|
-
selections: [
|
|
22
|
-
{
|
|
23
|
-
kind: "Scalar",
|
|
24
|
-
fieldName: "__typename",
|
|
25
|
-
arguments: null,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
kind: "Scalar",
|
|
29
|
-
fieldName: "id",
|
|
30
|
-
arguments: null,
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
};
|
|
36
9
|
const artifact: IsographEntrypoint<
|
|
37
10
|
Query__nodeField__param,
|
|
38
11
|
Query__nodeField__output_type,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type {NormalizationAst} from '@isograph/react';
|
|
2
|
+
const normalizationAst: NormalizationAst = {
|
|
3
|
+
kind: "NormalizationAst",
|
|
4
|
+
selections: [
|
|
5
|
+
{
|
|
6
|
+
kind: "Linked",
|
|
7
|
+
fieldName: "node",
|
|
8
|
+
arguments: [
|
|
9
|
+
[
|
|
10
|
+
"id",
|
|
11
|
+
{ kind: "Variable", name: "id" },
|
|
12
|
+
],
|
|
13
|
+
],
|
|
14
|
+
concreteType: null,
|
|
15
|
+
selections: [
|
|
16
|
+
{
|
|
17
|
+
kind: "Scalar",
|
|
18
|
+
fieldName: "__typename",
|
|
19
|
+
arguments: null,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
kind: "Scalar",
|
|
23
|
+
fieldName: "id",
|
|
24
|
+
arguments: null,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
};
|
|
30
|
+
export default normalizationAst;
|
|
@@ -3,44 +3,9 @@ import {Query__subquery__param} from './param_type';
|
|
|
3
3
|
import {Query__subquery__output_type} from './output_type';
|
|
4
4
|
import readerResolver from './resolver_reader';
|
|
5
5
|
import queryText from './query_text';
|
|
6
|
+
import normalizationAst from './normalization_ast';
|
|
6
7
|
const nestedRefetchQueries: RefetchQueryNormalizationArtifactWrapper[] = [];
|
|
7
8
|
|
|
8
|
-
const normalizationAst: NormalizationAst = {
|
|
9
|
-
kind: "NormalizationAst",
|
|
10
|
-
selections: [
|
|
11
|
-
{
|
|
12
|
-
kind: "Linked",
|
|
13
|
-
fieldName: "query",
|
|
14
|
-
arguments: null,
|
|
15
|
-
concreteType: "Query",
|
|
16
|
-
selections: [
|
|
17
|
-
{
|
|
18
|
-
kind: "Linked",
|
|
19
|
-
fieldName: "node",
|
|
20
|
-
arguments: [
|
|
21
|
-
[
|
|
22
|
-
"id",
|
|
23
|
-
{ kind: "Variable", name: "id" },
|
|
24
|
-
],
|
|
25
|
-
],
|
|
26
|
-
concreteType: null,
|
|
27
|
-
selections: [
|
|
28
|
-
{
|
|
29
|
-
kind: "Scalar",
|
|
30
|
-
fieldName: "__typename",
|
|
31
|
-
arguments: null,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
kind: "Scalar",
|
|
35
|
-
fieldName: "id",
|
|
36
|
-
arguments: null,
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
};
|
|
44
9
|
const artifact: IsographEntrypoint<
|
|
45
10
|
Query__subquery__param,
|
|
46
11
|
Query__subquery__output_type,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type {NormalizationAst} from '@isograph/react';
|
|
2
|
+
const normalizationAst: NormalizationAst = {
|
|
3
|
+
kind: "NormalizationAst",
|
|
4
|
+
selections: [
|
|
5
|
+
{
|
|
6
|
+
kind: "Linked",
|
|
7
|
+
fieldName: "query",
|
|
8
|
+
arguments: null,
|
|
9
|
+
concreteType: "Query",
|
|
10
|
+
selections: [
|
|
11
|
+
{
|
|
12
|
+
kind: "Linked",
|
|
13
|
+
fieldName: "node",
|
|
14
|
+
arguments: [
|
|
15
|
+
[
|
|
16
|
+
"id",
|
|
17
|
+
{ kind: "Variable", name: "id" },
|
|
18
|
+
],
|
|
19
|
+
],
|
|
20
|
+
concreteType: null,
|
|
21
|
+
selections: [
|
|
22
|
+
{
|
|
23
|
+
kind: "Scalar",
|
|
24
|
+
fieldName: "__typename",
|
|
25
|
+
arguments: null,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
kind: "Scalar",
|
|
29
|
+
fieldName: "id",
|
|
30
|
+
arguments: null,
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
};
|
|
38
|
+
export default normalizationAst;
|