Created
September 23, 2021 12:28
-
-
Save morus12/d48b7e68094dfe1acb514a0b6417c14d to your computer and use it in GitHub Desktop.
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
directive @cacheControl( | |
maxAge: Int | |
scope: CacheControlScope | |
) on FIELD_DEFINITION | OBJECT | INTERFACE | |
enum CacheControlScope { | |
PUBLIC | |
PRIVATE | |
} | |
type Continent { | |
code: ID! | |
name: String! | |
countries: [Country!]! | |
} | |
input ContinentFilterInput { | |
code: StringQueryOperatorInput | |
} | |
type Country { | |
code: ID! | |
name: String! | |
native: String! | |
phone: String! | |
continent: Continent! | |
capital: String | |
currency: String | |
languages: [Language!]! | |
emoji: String! | |
emojiU: String! | |
states: [State!]! | |
} | |
input CountryFilterInput { | |
code: StringQueryOperatorInput | |
currency: StringQueryOperatorInput | |
continent: StringQueryOperatorInput | |
} | |
type Language { | |
code: ID! | |
name: String | |
native: String | |
rtl: Boolean! | |
} | |
input LanguageFilterInput { | |
code: StringQueryOperatorInput | |
} | |
type Query { | |
continents(filter: ContinentFilterInput): [Continent!]! | |
continent(code: ID!): Continent | |
countries(filter: CountryFilterInput): [Country!]! | |
country(code: ID!): Country | |
languages(filter: LanguageFilterInput): [Language!]! | |
language(code: ID!): Language | |
} | |
type State { | |
code: String | |
name: String! | |
country: Country! | |
} | |
input StringQueryOperatorInput { | |
eq: String | |
ne: String | |
in: [String] | |
nin: [String] | |
regex: String | |
glob: String | |
} | |
scalar Upload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment