File indexing completed on 2024-05-12 04:02:07

0001 <!DOCTYPE html>
0002 <html><head>
0003 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
0004 <title>highlight.graphql</title>
0005 <meta name="generator" content="KF5::SyntaxHighlighting - Definition (GraphQL) - Theme (Breeze Dark)"/>
0006 </head><body style="background-color:#232629;color:#cfcfc2"><pre>
0007 <span style="color:#7a7c7d"># Examples taken from https://graphql.org/learn/schema/#type-language</span>
0008 <span style="color:#7a7c7d">#</span>
0009 <span style="color:#7a7c7d"># Alerts: </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold">TODO</span><span style="color:#7a7c7d"> </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold">FIXME</span>
0010 
0011 <span style="font-weight:bold">query</span> Hero(<span style="color:#27aeae">$episode</span>: Episode, <span style="color:#27aeae">$withFriends</span>: <span style="color:#2980b9">Boolean</span>!) {
0012   hero(episode: <span style="color:#27aeae">$episode</span>) {
0013     name
0014     friends <span style="color:#2980b9">@include</span>(if: <span style="color:#27aeae">$withFriends</span>) {
0015     }
0016   }
0017 }
0018 
0019 <span style="font-weight:bold">query</span> {
0020   droid(id: <span style="color:#f44f4f">"2000"</span>, num: <span style="color:#f67400">42</span>, active: <span style="color:#27aeae;font-weight:bold">true</span>) {
0021     name
0022   }
0023 }
0024 
0025 <span style="font-weight:bold">type</span> Person <span style="color:#2980b9">@addExternalFields</span>(source: <span style="color:#f44f4f">"profiles"</span>) <span style="color:#2980b9">@excludeField</span>(name: <span style="color:#f44f4f">"photo"</span>) {
0026   name: <span style="color:#2980b9">String</span>
0027 }
0028 
0029 <span style="color:#7a7c7d"># block strings (from https://github.com/graphql/graphql-spec/blob/master/spec/Section%202%20--%20Language.md)</span>
0030 
0031 <span style="color:#f44f4f">"""</span>
0032 <span style="color:#f44f4f">This starts with and ends with an empty line,</span>
0033 <span style="color:#f44f4f">which makes it easier to read.</span>
0034 <span style="color:#f44f4f">"""</span>
0035 
0036 <span style="color:#f44f4f">"""This does not start with or end with any empty lines,</span>
0037 <span style="color:#f44f4f">which makes it a little harder to read."""</span>
0038 </pre></body></html>