fix(plugin-collection-manager): filter out the fields
This commit is contained in:
		
							parent
							
								
									9c6ad9967f
								
							
						
					
					
						commit
						003745681b
					
				@ -24,9 +24,15 @@ export class CollectionModel extends MagicAttributeModel {
 | 
			
		||||
      if (skipExist) {
 | 
			
		||||
        return collection;
 | 
			
		||||
      }
 | 
			
		||||
      collection.updateOptions(this.get());
 | 
			
		||||
      collection.updateOptions({
 | 
			
		||||
        ...this.get(),
 | 
			
		||||
        fields: [],
 | 
			
		||||
      });
 | 
			
		||||
    } else {
 | 
			
		||||
      collection = this.db.collection(this.get());
 | 
			
		||||
      collection = this.db.collection({
 | 
			
		||||
        ...this.get(),
 | 
			
		||||
        fields: [],
 | 
			
		||||
      });
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!skipField) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user