diff --git a/index.js b/index.js index b6ca58c..1f507c5 100644 --- a/index.js +++ b/index.js @@ -44,7 +44,7 @@ const typeDefs = gql` code: LanguageCode name: String native: String - rtl: Int + rtl: Boolean } type Query { @@ -96,6 +96,11 @@ const resolvers = { })); } }, + Language: { + rtl(language) { + return Boolean(language.rtl); + } + }, Query: { continent(parent, {code}) { return {