Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let type = null;
let resolve = null;
if (attr instanceof BufferAttribute) {
type = GraphQLString;
}
if (attr instanceof attrs.CharAttribute) {
type = GraphQLString;
}
if (attr instanceof attrs.BooleanAttribute) {
type = GraphQLBoolean;
}
if (attr instanceof attrs.IntegerAttribute) {
type = GraphQLInt;
}
if (attr instanceof attrs.FloatAttribute) {
type = GraphQLFloat;
}
if (attr instanceof attrs.ArrayAttribute) {
type = new GraphQLList(GraphQLJSON);
}
if (attr instanceof attrs.ObjectAttribute) {
type = GraphQLJSON;
}
if (attr instanceof ModelAttribute) {