Not using IntlString scalar anymore

This commit is contained in:
SachaG 2018-05-08 11:06:31 +09:00
parent 2c03bd352a
commit 9700c4bbaf

View file

@ -20,8 +20,9 @@ const getGraphQLType = (schema, fieldName) => {
const type = field.type.singleType;
const typeName = typeof type === 'object' ? 'Object' : typeof type === 'function' ? type.name : type;
// intl fields should be treated as strings
if (field.intl) {
return 'IntlString';
return 'String';
}
switch (typeName) {