Skip to content

Commit 2e4a511

Browse files
committed
new versions
1 parent d1e3fd7 commit 2e4a511

File tree

9 files changed

+1160
-13
lines changed

9 files changed

+1160
-13
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.env
21
/lib
32
/node_modules
43
.graphql-editor-auth.json

examples/yoga-federated/.env

Whitespace-only changes.

examples/yoga-federated/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.env
21
/lib
32
/node_modules
43
.graphql-editor-auth.json

examples/yoga-federated/nodemon.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
".git",
55
"node_modules/**/node_modules",
66
"src/models.ts",
7-
"src/**/models.ts"
7+
"src/**/models.ts",
8+
"src/zeus"
89
],
910
"watch": [
1011
"src",

examples/yoga-federated/schema.graphql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,8 @@ type Mutation{
4848
type Query{
4949
user: AuthorizedUserQuery!
5050
}
51+
52+
schema{
53+
query: Query
54+
mutation: Mutation
55+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/* eslint-disable */
2+
3+
export const AllTypesProps: Record<string,any> = {
4+
AuthorizedUserMutation:{
5+
createTodo:{
6+
7+
},
8+
todoOps:{
9+
10+
},
11+
changePassword:{
12+
13+
}
14+
},
15+
AuthorizedUserQuery:{
16+
todo:{
17+
18+
}
19+
},
20+
Mutation:{
21+
login:{
22+
23+
},
24+
register:{
25+
26+
}
27+
},
28+
ID: `scalar.ID` as const
29+
}
30+
31+
export const ReturnTypes: Record<string,any> = {
32+
Todo:{
33+
_id:"String",
34+
content:"String",
35+
done:"Boolean"
36+
},
37+
TodoOps:{
38+
markDone:"Boolean"
39+
},
40+
User:{
41+
_id:"String",
42+
username:"String"
43+
},
44+
AuthorizedUserMutation:{
45+
createTodo:"String",
46+
todoOps:"TodoOps",
47+
changePassword:"Boolean"
48+
},
49+
AuthorizedUserQuery:{
50+
todos:"Todo",
51+
todo:"Todo",
52+
me:"User"
53+
},
54+
Mutation:{
55+
user:"AuthorizedUserMutation",
56+
login:"String",
57+
register:"String"
58+
},
59+
Query:{
60+
user:"AuthorizedUserQuery"
61+
},
62+
ID: `scalar.ID` as const
63+
}
64+
65+
export const Ops = {
66+
query: "Query" as const,
67+
mutation: "Mutation" as const
68+
}

0 commit comments

Comments
 (0)