-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct the formatting of the example schema
- Loading branch information
Showing
1 changed file
with
37 additions
and
30 deletions.
There are no files selected for viewing
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,33 +1,40 @@ | ||
{:enums { | ||
:episode {:description "The episodes of the original Star Wars trilogy." | ||
:values ["NEWHOPE" "EMPIRE" "JEDI"]}} | ||
{:enums | ||
{:episode | ||
{:description "The episodes of the original Star Wars trilogy." | ||
:values ["NEWHOPE" "EMPIRE" "JEDI"]}} | ||
|
||
:interfaces { | ||
:character {:fields {:id {:type String} | ||
:name {:type String} | ||
:appears_in {:type (list :episode)} | ||
:friends {:type (list :character)}}}} | ||
:objects { | ||
:droid {:implements [:character] | ||
:fields {:id {:type String} | ||
:name {:type String} | ||
:appears_in {:type (list :episode)} | ||
:friends {:type (list :character)} | ||
:primary_function {:type (list String)}}} | ||
:interfaces | ||
{:character | ||
{:fields {:id {:type String} | ||
:name {:type String} | ||
:appears_in {:type (list :episode)} | ||
:friends {:type (list :character)}}}} | ||
|
||
:human {:implements [:character] | ||
:fields {:id {:type String} | ||
:name {:type String} | ||
:appears_in {:type (list :episode)} | ||
:friends {:type (list :character)} | ||
:home_planet {:type String}}}} | ||
:objects | ||
{:droid | ||
{:implements [:character] | ||
:fields {:id {:type String} | ||
:name {:type String} | ||
:appears_in {:type (list :episode)} | ||
:friends {:type (list :character)} | ||
:primary_function {:type (list String)}}} | ||
|
||
:queries { | ||
:hero {:type (non-null :character) | ||
:args {:episode {:type :episode}}} | ||
:human {:type (non-null :human) | ||
:args {:id {:type String | ||
:default-value "1001"}}} | ||
:droid {:type :droid | ||
:args {:id {:type String | ||
:default-value "2001"}}}}} | ||
:human | ||
{:implements [:character] | ||
:fields {:id {:type String} | ||
:name {:type String} | ||
:appears_in {:type (list :episode)} | ||
:friends {:type (list :character)} | ||
:home_planet {:type String}}}} | ||
|
||
:queries | ||
{:hero {:type (non-null :character) | ||
:args {:episode {:type :episode}}} | ||
|
||
:human {:type (non-null :human) | ||
:args {:id {:type String | ||
:default-value "1001"}}} | ||
|
||
:droid {:type :droid | ||
:args {:id {:type String | ||
:default-value "2001"}}}}} |