Closed alirizwan closed 5 years ago
Why was this closed? This still seems like an existing bug.
Actually, I solved it by doing this:
const options = {
cache: {},
commentToDescription: true
};
const fullModel = attributeFields(model, options);
options.allowNull = true;
const looseModel = attributeFields(model, options);
}
Seems to work well
When calling attribute fields multiple times on same model, duplicate enumtypes gets created with an error:
Error: Schema must contain unique named types but contains multiple types named "UserroleEnumType".