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
We need to validate that the tables have a name here because a user could pass in an array
24
+
of Tables that don't have a name because they are using the V2 syntax.
25
+
Therefore, 'convertToClassicTables' won't be called on the tables resulting in a runtime error.
26
+
*/
27
+
for(consttableoftables){
28
+
if(table.name===''){
29
+
thrownewError(
30
+
"It appears you are trying to create a new Schema with an array instead of an object. Passing in an object instead of an array into 'new Schema()' may resolve your issue."
0 commit comments