Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
graphql_type = graphql_1.GraphQLFloat;
}
else if (property.type_class === cormo.types.Integer) {
graphql_type = graphql_1.GraphQLInt;
}
else if (property.type_class === cormo.types.String) {
graphql_type = graphql_1.GraphQLString;
}
else if (property.type_class === cormo.types.Text) {
graphql_type = graphql_1.GraphQLString;
}
else if (property.type_class === cormo.types.Date) {
graphql_type = crary_graphql_1.CrTimestamp;
}
else if (property.type_class === cormo.types.Object) {
graphql_type = crary_graphql_1.CrJson;
}
if (graphql_type && property.required) {
return new graphql_1.GraphQLNonNull(graphql_type);
}
return graphql_type;
}
function createSingleType(model_class, options) {