Debian Codegraph @

examples/prism-graphql.html

raw symbols SCIP
1 <h2>Comments</h2>
2 <pre><code># This is a comment</code></pre>
3
4 <h2>Strings</h2>
5 <pre><code>""
6 "foo \"bar\" baz"
7 """ "Multi-line" strings
8 are supported."""
9 </code></pre>
10
11 <h2>Numbers</h2>
12 <pre><code>0
13 42
14 3.14159
15 -9e-5
16 0.9E+7</code></pre>
17
18 <h2>Keywords</h2>
19 <pre><code>query withFragments {
20 user(id: 4) {
21 friends(first: 10) {
22 ...friendFields
23 }
24 mutualFriends(first: 10) {
25 ...friendFields
26 }
27 }
28 }
29
30 fragment friendFields on User {
31 id
32 name
33 profilePic(size: 50)
34 }</code></pre>
35
36 <p>Markdown inside of descriptions require markdown to be loaded.
37 On this page, checking Markdown <strong>before</strong> checking GraphQL should
38 make the example below work properly.</p>
39
40 <h2>Descriptions</h2>
41 <pre><code>"""
42 This is a multiline description
43 # Heading
44 [Prism](http://www.prismjs.com)
45
46 It can contain **Markdown
47 on multiple lines**
48 """
49 type Example {
50 id: ID!
51 }
52
53 type Sample {
54 """
55 Simple multiline description
56 """
57 name(
58 "This is a single line description"
59 first: Int
60 ): String
61 }
62 </code></pre>