OBJECT

Query

The set of possible top-level queries

link GraphQL Schema definition

1type Query {
2
3# Look up a country
4#
5# Arguments
6# id: An ISO-3166 country code or WikiData id
7# displayOptions: How to display the results
8country(id: ID!, displayOptions: DisplayOptions): Country
145
9# Find countries, filtering by optional criteria. If no criteria are set, you will
10# get back all known countries.
11#
12# Arguments
13# currencyCode: Only countries supporting this currency
14# namePrefix: Only countries whose names start with this prefix.
15# If language is set, the prefix will be matched on the name as it appears in that
16# language.
17# namePrefixDefaultLangResults: When name-prefix matching,
18# whether or not to match on names in the default language if a non-default
19# language is requested.
20# sort: How to sort countries
21# Format: ±SORT_FIELD
22# where SORT_FIELD = code | name
23# first: How many results to retrieve from the beginning (or
24# after the 'after' cursor, if specified)
25# after: The cursor id after which to get results
26# last: How many results to retrieve from the end (or before the
27# 'before' cursor, if specified)
28# before: The cursor id before which to get results
29# displayOptions: How to display the results
30countries(
31currencyCode: String,
32namePrefix: String,
33namePrefixDefaultLangResults: Boolean,
34sort: String,
35first: Int,
36after: String,
37last: Int,
38before: String,
39displayOptions: DisplayOptions
40): CountriesConnection
145
41# Find currencies, filtering by optional criteria. If no criteria are set, you
42# will get back all known currencies.
43#
44# Arguments
45# countryId: Currencies for this country id
46# first: How many results to retrieve from the beginning (or
47# after the 'after' cursor, if specified)
48# after: The cursor id after which to get results
49# last: How many results to retrieve from the end (or before the
50# 'before' cursor, if specified)
51# before: The cursor id before which to get results
52currencies(countryId: ID, first: Int, after: String, last: Int, before: String): CurrenciesConnection
145
53# Get the distance between any two places
54#
55# Arguments
56# fromPlaceId: From some place
57# toPlaceId: To some place
58# distanceUnit: The unit of distance to use
59distanceBetween(
60fromPlaceId: ID!,
61toPlaceId: ID!,
62distanceUnit: DistanceUnit
63): Float
145
64# Get all known locales
65#
66# Arguments
67# first: How many results to retrieve from the beginning (or
68# after the 'after' cursor, if specified)
69# after: The cursor id after which to get results
70# last: How many results to retrieve from the end (or before the
71# 'before' cursor, if specified)
72# before: The cursor id before which to get results
73locales(first: Int, after: String, last: Int, before: String): LocalesConnection
145
74# Look up a populated place
75#
76# Arguments
77# id: [Not documented]
78# displayOptions: How to display the results
79populatedPlace(id: ID!, displayOptions: DisplayOptions): PopulatedPlace
145
80# Find populated places, filtering by optional criteria. If no criteria are set,
81# you will get back all known places.
82#
83# Arguments
84# location: Only places near this location
85# radius: The location radius within which to find places
86# distanceUnit: The unit of distance to use
87# countryIds: Only places in these countries
88# excludedCountryIds: Only places NOT in these countries
89# namePrefix: Only places whose names start with this prefix. If
90# language is set, the prefix will be matched on the name as it appears in that
91# language.
92# namePrefixDefaultLangResults: When name-prefix matching,
93# whether or not to match on names in the default language if a non-default
94# language is requested.
95# minPopulation: Only places having at least this population
96# maxPopulation: Only places having no more than this population
97# timeZoneIds: Only places in these time-zones
98# types: Only places for these types
99# sort: How to sort places
100# Format: ±SORT_FIELD,±SORT_FIELD
101# where SORT_FIELD = countryCode | elevation | name | population
102# first: How many results to retrieve from the beginning (or
103# after the 'after' cursor, if specified)
104# after: The cursor id after which to get results
105# last: How many results to retrieve from the end (or before the
106# 'before' cursor, if specified)
107# before: The cursor id before which to get results
108# displayOptions: How to display the results
109# includeDeleted: Whether to include any places marked deleted
110populatedPlaces(
111location: Location,
112radius: Float,
113distanceUnit: DistanceUnit,
114countryIds: [ID],
115excludedCountryIds: [ID],
116namePrefix: String,
117namePrefixDefaultLangResults: Boolean,
118minPopulation: Int,
119maxPopulation: Int,
120timeZoneIds: [ID],
121types: [String],
122sort: String,
123first: Int,
124after: String,
125last: Int,
126before: String,
127displayOptions: DisplayOptions,
128includeDeleted: IncludeDeletedFilterType
129): PopulatedPlacesConnection
145
130# Look up a time-zone
131#
132# Arguments
133# id: [Not documented]
134timeZone(id: ID!): TimeZone
145
135# Get all known time-zones
136#
137# Arguments
138# first: How many results to retrieve from the beginning (or
139# after the 'after' cursor, if specified)
140# after: The cursor id after which to get results
141# last: How many results to retrieve from the end (or before the
142# 'before' cursor, if specified)
143# before: The cursor id before which to get results
144timeZones(first: Int, after: String, last: Int, before: String): TimeZonesConnection
146
147}

link Required by

This element is not required by anyone