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
staticasync_getCollection(){if(this._collection){// always seems to be truereturnthis._collection}constdb=awaitthis._getDatabase()constcollection=db.collection(this.name)try{awaitcollection.create()awaitthis._setIndexes(collection)}catch(e){}returnthis._collection=collection}staticasync_setIndexes(collection){constschema=this._getSchema()for(constfieldofschema){if(!field.options.index)continueconstpath=field.path.join('.')constunique=field.options.uniqueawaitcollection.createHashIndex(path,{unique})}}
The text was updated successfully, but these errors were encountered:
This code does not seem to work as intended:
The text was updated successfully, but these errors were encountered: