You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will allow to implement your particular check as:
constdiff=diffSchema(oldSchema,newSchema);for(constnewTypeofdiff.added.types){if(newType.description){console.log("Description of a new type ...");}newType.getFields().forEach(reportNewField);}for(consttypeDiffofdiff.changed.types){if(typeDiff.added.description){console.log("Added type description ...");}typeDiff.added.fields.forEach(reportNewField);if(typeDiff.changed.description){console.log("Changed type description ...");}for(constfieldDiffoftypeDiff.changed.field){if(fieldDiff.added.description){console.log("Added field description ...");// ...}}}functionreportNewField(field){if(field.description){// ...}}
The text was updated successfully, but these errors were encountered:
Extracted from #1127 see #1127 (comment)
We shoud add
diffSchemas
function. That returns something like this:It will allow to implement your particular check as:
The text was updated successfully, but these errors were encountered: