Skip to content

Commit 2793d3e

Browse files
committed
working version pull
1 parent 9ffd88c commit 2793d3e

File tree

6 files changed

+187
-11
lines changed

6 files changed

+187
-11
lines changed

package-lock.json

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"eslint": "^8.23.1",
2222
"eslint-config-prettier": "^8.5.0",
2323
"eslint-plugin-prettier": "^4.2.1",
24-
"graphql-editor-cli": "^0.9.3",
24+
"graphql-editor-cli": "^0.9.4",
2525
"impuddle": "0.0.2",
2626
"prettier": "^2.7.1",
2727
"ttypescript": "^1.5.13",

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-editor-cli",
3-
"version": "0.9.3",
3+
"version": "0.9.4",
44
"description": "GraphQL -> anything. Use GraphQL as your source of truth. GraphQL Editor Official CLI.",
55
"main": "lib/api.js",
66
"author": "Artur Czemiel",

packages/cli/src/gshared/constants/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const FAKER_DEPLOY_FILE = "faker.json";
55
export const ENDPOINT_CONFIGURATION_FILE = "cloudConfig.json";
66
export const JAMSTACK_CONFIG_FILE = "jamstack.json";
77

8-
export const IS_VERSION_FILE_REGEX = /^schema-(.*)\.json$/;
8+
export const IS_VERSION_FILE_REGEX = /^schema-(.*)\.graphql$/;
99

1010
export const SLACK_JOIN = `https://discord.gg/wVcZdmd`;
1111

packages/sandbox/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"name": "sandbox",
33
"private": true,
4-
"version": "0.8.8",
4+
"version": "0.8.9",
55
"description": "GraphQL -> anything. Use GraphQL as your source of truth. GraphQL Editor Official CLI.",
66
"author": "Artur Czemiel",
77
"license": "MIT",
88
"type": "module",
99
"scripts": {
10-
"cli": "node ../cli/lib/index.js",
10+
"cli": "npx gecli schema pull",
1111
"integrate": "npm run cli -- gei integrate"
1212
},
13-
"devDependencies": {},
14-
"dependencies": {}
13+
"dependencies": {
14+
"graphql-editor-cli": "^0.9.4"
15+
}
1516
}

packages/sandbox/s.graphql

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
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+
}

0 commit comments

Comments
 (0)