Skip to content

Commit

Permalink
Correct the formatting of the example schema
Browse files Browse the repository at this point in the history
  • Loading branch information
hlship committed Mar 24, 2017
1 parent a87ca5c commit 54d4595
Showing 1 changed file with 37 additions and 30 deletions.
67 changes: 37 additions & 30 deletions dev-resources/star-wars-schema.edn
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"}}}}}

0 comments on commit 54d4595

Please sign in to comment.