From ee4c0f0693d199cdd402e24ad19d8952416a0874 Mon Sep 17 00:00:00 2001 From: Trevor Blades Date: Fri, 11 Feb 2022 12:04:06 -0800 Subject: [PATCH] Reorder schema --- schema.graphql | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/schema.graphql b/schema.graphql index b148bd2..9ccb49f 100644 --- a/schema.graphql +++ b/schema.graphql @@ -1,9 +1,3 @@ -type Continent @key(fields: "code") { - code: ID! - name: String! - countries: [Country!]! -} - type Country @key(fields: "code") { code: ID! name: String! @@ -18,10 +12,10 @@ type Country @key(fields: "code") { states: [State!]! } -type State { - code: String +type Continent @key(fields: "code") { + code: ID! name: String! - country: Country! + countries: [Country!]! } type Language @key(fields: "code") { @@ -31,6 +25,12 @@ type Language @key(fields: "code") { rtl: Boolean! } +type State { + code: String + name: String! + country: Country! +} + input StringQueryOperatorInput { eq: String ne: String @@ -55,10 +55,10 @@ input LanguageFilterInput { } type Query { - continents(filter: ContinentFilterInput): [Continent!]! - continent(code: ID!): Continent countries(filter: CountryFilterInput): [Country!]! country(code: ID!): Country + continents(filter: ContinentFilterInput): [Continent!]! + continent(code: ID!): Continent languages(filter: LanguageFilterInput): [Language!]! language(code: ID!): Language } \ No newline at end of file