File: schema.graphql

package info (click to toggle)
ruby-graphql 2.2.17-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,584 kB
  • sloc: ruby: 67,505; ansic: 1,753; yacc: 831; javascript: 331; makefile: 6
file content (118 lines) | stat: -rw-r--r-- 1,784 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# A big schema for testing
type Query {
  node(id: ID!): Node
}

interface Node {
  id: ID!
}

interface Node2 {
  id: ID
}

interface Commentable {
  id: ID!
  comments: [Comment!]!
}

interface Named {
  name: String!
}
type Comment implements Node {
  author: Player
  body: String!
  id: ID!
}

type Card implements Node, Commentable, Node2, Named {
  name: String!
  converted_mana_cost: Int!
  mana_cost: String!
  colors: [Color!]!
  power: Int
  toughness: Int
  rules_text: String!
  id: ID!
  comments: [Comment!]!
}

type Printing implements Node, Commentable, Node2 {
  card: Card!
  expansion: Expansion!
  rarity: Rarity!
  artist: Artist!
  id: ID!
  comments: [Comment!]!
}

type Expansion implements Node, Commentable, Named {
  name: String!
  code: String!
  printings: [Printing!]!
  block: Block!
  id: ID!
  comments: [Comment!]!
}

type Block implements Node, Commentable, Named {
  name: String!
  expansions: [Expansion!]!
  id: ID!
  comments: [Comment!]!
}

# Eg shard, guild, clan
type Watermark implements Node, Commentable, Named {
  name: String!
  cards: [Card!]!
  colors: [Color!]!
  id: ID!
  comments: [Comment!]!
}

type Artist implements Node, Commentable, Named {
  name: String!
  printings: [Printing!]!
  id: ID!
  comments: [Comment!]!
}

type Player implements Node, Commentable, Named {
  name: String!
  decks: [Deck!]!
  id: ID!
  comments: [Comment!]!
}

type Deck implements Node, Commentable, Named {
  name: String!
  colors: [Color!]!
  slots: [Slot!]!
  id: ID!
  comments: [Comment!]!
}

type Slot implements Node, Commentable {
  deck: Deck!
  card: Card!
  id: ID!
  comments: [Comment!]!
}

enum Color {
  WHITE
  BLUE
  BLACK
  RED
  GREEN
  COLORLESS
}

enum Rarity {
  COMMON
  UNCOMMON
  RARE
  MYTHIC_RARE
  TIMESHIFTED
}