-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
187 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
{ | ||
"name": "sandbox", | ||
"private": true, | ||
"version": "0.8.8", | ||
"version": "0.8.9", | ||
"description": "GraphQL -> anything. Use GraphQL as your source of truth. GraphQL Editor Official CLI.", | ||
"author": "Artur Czemiel", | ||
"license": "MIT", | ||
"type": "module", | ||
"scripts": { | ||
"cli": "node ../cli/lib/index.js", | ||
"cli": "npx gecli schema pull", | ||
"integrate": "npm run cli -- gei integrate" | ||
}, | ||
"devDependencies": {}, | ||
"dependencies": {} | ||
"dependencies": { | ||
"graphql-editor-cli": "^0.9.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
interface Nameable{ | ||
name: String! | ||
} | ||
|
||
enum SpecialSkills{ | ||
""" | ||
Lower enemy defense -5<br> | ||
""" | ||
THUNDER | ||
""" | ||
Attack multiple Cards at once<br> | ||
""" | ||
RAIN | ||
""" | ||
50% chance to avoid any attack<br> | ||
""" | ||
FIRE | ||
} | ||
|
||
type Query{ | ||
cardById( | ||
cardId: String | ||
): Card | ||
""" | ||
Draw a card<br> | ||
""" | ||
drawCard: Card! | ||
drawChangeCard: ChangeCard! | ||
""" | ||
list All Cards availble<br> | ||
""" | ||
listCards: [Card!]! | ||
myStacks: [CardStack!] | ||
nameables: [Nameable!]! | ||
public: Public | ||
} | ||
|
||
""" | ||
create card inputs<br> | ||
""" | ||
input createCard{ | ||
""" | ||
The name of a card<br> | ||
""" | ||
name: String! | ||
""" | ||
Description of a card<br> | ||
""" | ||
description: String! | ||
""" | ||
<div>How many children the greek god had</div> | ||
""" | ||
Children: Int | ||
""" | ||
The attack power<br> | ||
""" | ||
Attack: Int! | ||
""" | ||
The defense power<br> | ||
""" | ||
Defense: Int! | ||
""" | ||
input skills | ||
""" | ||
skills: [SpecialSkills!] | ||
} | ||
|
||
""" | ||
Stack of cards | ||
""" | ||
type CardStack implements Nameable{ | ||
cards: [Card!] | ||
name: String! | ||
} | ||
|
||
""" | ||
Card used in card game<br> | ||
""" | ||
type Card implements Nameable{ | ||
""" | ||
The attack power<br> | ||
""" | ||
Attack: Int! | ||
""" | ||
<div>How many children the greek god had</div> | ||
""" | ||
Children: Int | ||
""" | ||
The defense power<br> | ||
""" | ||
Defense: Int! | ||
""" | ||
Attack other cards on the table , returns Cards after attack<br> | ||
""" | ||
attack( | ||
""" | ||
Attacked card/card ids<br> | ||
""" | ||
cardID: [String!]! | ||
): [Card!] | ||
""" | ||
Put your description here | ||
""" | ||
cardImage: S3Object | ||
""" | ||
Description of a card<br> | ||
""" | ||
description: String! | ||
id: ID! | ||
image: String! | ||
info: JSON! | ||
""" | ||
The name of a card<br> | ||
""" | ||
name: String! | ||
skills: [SpecialSkills!] | ||
} | ||
|
||
type SpecialCard implements Nameable{ | ||
effect: String! | ||
name: String! | ||
} | ||
|
||
type EffectCard implements Nameable{ | ||
effectSize: Float! | ||
name: String! | ||
} | ||
|
||
type Mutation{ | ||
""" | ||
add Card to Cards database<br> | ||
""" | ||
addCard( | ||
card: createCard! | ||
): Card! | ||
} | ||
|
||
scalar JSON | ||
|
||
""" | ||
Aws S3 File | ||
""" | ||
type S3Object{ | ||
bucket: String! | ||
key: String! | ||
region: String! | ||
} | ||
|
||
type Public{ | ||
powerups( | ||
filter: String! | ||
): [Powerup!] | ||
} | ||
|
||
type Powerup{ | ||
name: String | ||
} | ||
|
||
union ChangeCard = SpecialCard | EffectCard | ||
|
||
type Subscription{ | ||
deck: [Card!] | ||
} | ||
|
||
schema{ | ||
query: Query | ||
mutation: Mutation | ||
subscription: Subscription | ||
} |