Files
countries/schema.js
2020-02-02 15:27:41 -08:00

45 lines
737 B
JavaScript

import {gql} from 'apollo-server';
export default gql`
type Continent {
code: String
name: String
countries: [Country]
}
type Country {
code: String
name: String
native: String
phone: String
continent: Continent
currency: String
languages: [Language]
emoji: String
emojiU: String
states: [State]
}
type State {
code: String
name: String
country: Country
}
type Language {
code: String
name: String
native: String
rtl: Int
}
type Query {
continents: [Continent]
continent(code: String): Continent
countries: [Country]
country(code: String): Country
languages: [Language]
language(code: String): Language
}
`;