-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
127 lines (120 loc) · 2.7 KB
/
index.html
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
119
120
121
122
123
124
125
126
<html>
<head>
<title>Astral Arcanum GraphiQL</title>
<link href="https://unpkg.com/graphiql/graphiql.min.css" rel="stylesheet" />
</head>
<body style="margin: 0;">
<div id="graphiql" style="height: 100vh;"></div>
<script
crossorigin
src="https://unpkg.com/react/umd/react.production.min.js"
></script>
<script
crossorigin
src="https://unpkg.com/react-dom/umd/react-dom.production.min.js"
></script>
<script
crossorigin
src="https://unpkg.com/graphiql/graphiql.min.js"
></script>
<script>
const fetcher = GraphiQL.createFetcher({ url: 'https://astral-arcanum-dev.herokuapp.com/' });
ReactDOM.render(
React.createElement(GraphiQL, {
fetcher: fetcher,
defaultQuery: `
# Welcome to GraphiQL for Astral Arcanum
#
# Type queries into this side of the screen, and you will see intelligent
# typeaheads aware of the current GraphQL type schema and live syntax and
# validation errors highlighted within the text.
#
# GraphQL queries typically start with a "{" character. Lines that start
# with a # are ignored.
#
# An example GraphQL query might look like:
#
# {
# field(arg: "value") {
# subField
# }
# }
#
# Keyboard shortcuts:
#
# Prettify Query: Shift-Ctrl-P (or press the prettify button above)
#
# Merge Query: Shift-Ctrl-M (or press the merge button above)
#
# Run Query: Ctrl-Enter (or press the play button above)
#
# Auto Complete: Ctrl-Space (or just start typing)
#
# A default query is provided below, feel free to edit or delete!
{
moment{
planetPositions{
planet
longitude{
zodiacSign
degrees
minutes
seconds
}
}
}
horoscope(location: {longitude: -87.15, latitude: 14.06, name: "here"}, date: {formatted: "1989-01-06T23:30:00", year: null, month: null, day: null, hour: null, minute: null, second: null}) {
planetPositions {
planet
longitude {
zodiacSign
unSplit
}
speed{unSplit}
}
houseCusps {
houseNumber{
label
number
}
longitude {
zodiacSign
unSplit
}
}
houseSystemUsed
aspects{
definition{
name
}
phase
aspecting{
... on HouseCusp{
houseNumber{
label
}
}
... on PlanetPosition{
planet
}
}
aspected{
... on HouseCusp{
houseNumber{
label
}
}
... on PlanetPosition{
planet
}
}
}
}
}
`
}),
document.getElementById('graphiql'),
);
</script>
</body>
</html>