Cast language RTL value as boolean

This commit is contained in:
Trevor Blades
2020-03-26 15:01:31 -07:00
parent d1799806d2
commit 21204d43e5

View File

@@ -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 {