mirror of
https://github.com/FranP-code/countries.git
synced 2025-10-13 00:02:15 +00:00
Reorder schema
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user