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") {
|
type Country @key(fields: "code") {
|
||||||
code: ID!
|
code: ID!
|
||||||
name: String!
|
name: String!
|
||||||
@@ -18,10 +12,10 @@ type Country @key(fields: "code") {
|
|||||||
states: [State!]!
|
states: [State!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type State {
|
type Continent @key(fields: "code") {
|
||||||
code: String
|
code: ID!
|
||||||
name: String!
|
name: String!
|
||||||
country: Country!
|
countries: [Country!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type Language @key(fields: "code") {
|
type Language @key(fields: "code") {
|
||||||
@@ -31,6 +25,12 @@ type Language @key(fields: "code") {
|
|||||||
rtl: Boolean!
|
rtl: Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type State {
|
||||||
|
code: String
|
||||||
|
name: String!
|
||||||
|
country: Country!
|
||||||
|
}
|
||||||
|
|
||||||
input StringQueryOperatorInput {
|
input StringQueryOperatorInput {
|
||||||
eq: String
|
eq: String
|
||||||
ne: String
|
ne: String
|
||||||
@@ -55,10 +55,10 @@ input LanguageFilterInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Query {
|
type Query {
|
||||||
continents(filter: ContinentFilterInput): [Continent!]!
|
|
||||||
continent(code: ID!): Continent
|
|
||||||
countries(filter: CountryFilterInput): [Country!]!
|
countries(filter: CountryFilterInput): [Country!]!
|
||||||
country(code: ID!): Country
|
country(code: ID!): Country
|
||||||
|
continents(filter: ContinentFilterInput): [Continent!]!
|
||||||
|
continent(code: ID!): Continent
|
||||||
languages(filter: LanguageFilterInput): [Language!]!
|
languages(filter: LanguageFilterInput): [Language!]!
|
||||||
language(code: ID!): Language
|
language(code: ID!): Language
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user