mirror of
https://github.com/FranP-code/countries.git
synced 2025-10-13 00:02:15 +00:00
Make code for singular resolvers required
This commit is contained in:
6
index.js
6
index.js
@@ -37,11 +37,11 @@ const typeDefs = gql`
|
||||
|
||||
type Query {
|
||||
continents: [Continent]
|
||||
continent(code: String): Continent
|
||||
continent(code: String!): Continent
|
||||
countries: [Country]
|
||||
country(code: String): Country
|
||||
country(code: String!): Country
|
||||
languages: [Language]
|
||||
language(code: String): Language
|
||||
language(code: String!): Language
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user