File tree Expand file tree Collapse file tree 6 files changed +187
-11
lines changed Expand file tree Collapse file tree 6 files changed +187
-11
lines changed Original file line number Diff line number Diff line change 21
21
"eslint" : " ^8.23.1" ,
22
22
"eslint-config-prettier" : " ^8.5.0" ,
23
23
"eslint-plugin-prettier" : " ^4.2.1" ,
24
- "graphql-editor-cli" : " ^0.9.3 " ,
24
+ "graphql-editor-cli" : " ^0.9.4 " ,
25
25
"impuddle" : " 0.0.2" ,
26
26
"prettier" : " ^2.7.1" ,
27
27
"ttypescript" : " ^1.5.13" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " graphql-editor-cli" ,
3
- "version" : " 0.9.3 " ,
3
+ "version" : " 0.9.4 " ,
4
4
"description" : " GraphQL -> anything. Use GraphQL as your source of truth. GraphQL Editor Official CLI." ,
5
5
"main" : " lib/api.js" ,
6
6
"author" : " Artur Czemiel" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export const FAKER_DEPLOY_FILE = "faker.json";
5
5
export const ENDPOINT_CONFIGURATION_FILE = "cloudConfig.json" ;
6
6
export const JAMSTACK_CONFIG_FILE = "jamstack.json" ;
7
7
8
- export const IS_VERSION_FILE_REGEX = / ^ s c h e m a - ( .* ) \. j s o n $ / ;
8
+ export const IS_VERSION_FILE_REGEX = / ^ s c h e m a - ( .* ) \. g r a p h q l $ / ;
9
9
10
10
export const SLACK_JOIN = `https://discord.gg/wVcZdmd` ;
11
11
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sandbox" ,
3
3
"private" : true ,
4
- "version" : " 0.8.8 " ,
4
+ "version" : " 0.8.9 " ,
5
5
"description" : " GraphQL -> anything. Use GraphQL as your source of truth. GraphQL Editor Official CLI." ,
6
6
"author" : " Artur Czemiel" ,
7
7
"license" : " MIT" ,
8
8
"type" : " module" ,
9
9
"scripts" : {
10
- "cli" : " node ../cli/lib/index.js " ,
10
+ "cli" : " npx gecli schema pull " ,
11
11
"integrate" : " npm run cli -- gei integrate"
12
12
},
13
- "devDependencies" : {},
14
- "dependencies" : {}
13
+ "dependencies" : {
14
+ "graphql-editor-cli" : " ^0.9.4"
15
+ }
15
16
}
Original file line number Diff line number Diff line change
1
+ interface Nameable {
2
+ name : String !
3
+ }
4
+
5
+ enum SpecialSkills {
6
+ """
7
+ Lower enemy defense -5<br>
8
+ """
9
+ THUNDER
10
+ """
11
+ Attack multiple Cards at once<br>
12
+ """
13
+ RAIN
14
+ """
15
+ 50% chance to avoid any attack<br>
16
+ """
17
+ FIRE
18
+ }
19
+
20
+ type Query {
21
+ cardById (
22
+ cardId : String
23
+ ): Card
24
+ """
25
+ Draw a card<br>
26
+ """
27
+ drawCard : Card !
28
+ drawChangeCard : ChangeCard !
29
+ """
30
+ list All Cards availble<br>
31
+ """
32
+ listCards : [Card ! ]!
33
+ myStacks : [CardStack ! ]
34
+ nameables : [Nameable ! ]!
35
+ public : Public
36
+ }
37
+
38
+ """
39
+ create card inputs<br>
40
+ """
41
+ input createCard {
42
+ """
43
+ The name of a card<br>
44
+ """
45
+ name : String !
46
+ """
47
+ Description of a card<br>
48
+ """
49
+ description : String !
50
+ """
51
+ <div>How many children the greek god had</div>
52
+ """
53
+ Children : Int
54
+ """
55
+ The attack power<br>
56
+ """
57
+ Attack : Int !
58
+ """
59
+ The defense power<br>
60
+ """
61
+ Defense : Int !
62
+ """
63
+ input skills
64
+ """
65
+ skills : [SpecialSkills ! ]
66
+ }
67
+
68
+ """
69
+ Stack of cards
70
+ """
71
+ type CardStack implements Nameable {
72
+ cards : [Card ! ]
73
+ name : String !
74
+ }
75
+
76
+ """
77
+ Card used in card game<br>
78
+ """
79
+ type Card implements Nameable {
80
+ """
81
+ The attack power<br>
82
+ """
83
+ Attack : Int !
84
+ """
85
+ <div>How many children the greek god had</div>
86
+ """
87
+ Children : Int
88
+ """
89
+ The defense power<br>
90
+ """
91
+ Defense : Int !
92
+ """
93
+ Attack other cards on the table , returns Cards after attack<br>
94
+ """
95
+ attack (
96
+ """
97
+ Attacked card/card ids<br>
98
+ """
99
+ cardID : [String ! ]!
100
+ ): [Card ! ]
101
+ """
102
+ Put your description here
103
+ """
104
+ cardImage : S3Object
105
+ """
106
+ Description of a card<br>
107
+ """
108
+ description : String !
109
+ id : ID !
110
+ image : String !
111
+ info : JSON !
112
+ """
113
+ The name of a card<br>
114
+ """
115
+ name : String !
116
+ skills : [SpecialSkills ! ]
117
+ }
118
+
119
+ type SpecialCard implements Nameable {
120
+ effect : String !
121
+ name : String !
122
+ }
123
+
124
+ type EffectCard implements Nameable {
125
+ effectSize : Float !
126
+ name : String !
127
+ }
128
+
129
+ type Mutation {
130
+ """
131
+ add Card to Cards database<br>
132
+ """
133
+ addCard (
134
+ card : createCard !
135
+ ): Card !
136
+ }
137
+
138
+ scalar JSON
139
+
140
+ """
141
+ Aws S3 File
142
+ """
143
+ type S3Object {
144
+ bucket : String !
145
+ key : String !
146
+ region : String !
147
+ }
148
+
149
+ type Public {
150
+ powerups (
151
+ filter : String !
152
+ ): [Powerup ! ]
153
+ }
154
+
155
+ type Powerup {
156
+ name : String
157
+ }
158
+
159
+ union ChangeCard = SpecialCard | EffectCard
160
+
161
+ type Subscription {
162
+ deck : [Card ! ]
163
+ }
164
+
165
+ schema {
166
+ query : Query
167
+ mutation : Mutation
168
+ subscription : Subscription
169
+ }
You can’t perform that action at this time.
0 commit comments