graffiti-mongoose icon indicating copy to clipboard operation
graffiti-mongoose copied to clipboard

setTypeFields bug

Open caizx666 opened this issue 8 years ago • 0 comments

fix Error: Schema must contain unique named types but contains multiple types named

function setTypeFields(type, fields) { type._typeConfig.fields = function () { return fields; }; }

change to

function setTypeFields(type, fields) { type._fields = null; // for reset type._typeConfig.fields = function () { return fields; }; }

caizx666 avatar Jan 22 '18 05:01 caizx666