File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed 
packages/compass-collection/src/components/mock-data-generator-modal Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ export function generateScript(
6262    ) ; 
6363
6464    const  script  =  `// Mock Data Generator Script 
65- // Generated for collection: ${ options . databaseName }  .${ options . collectionName }  
65+ // Generated for collection: ${ JSON . stringify (  
66+       options . databaseName  
67+     ) }  .${ JSON . stringify ( options . collectionName ) } 
6668// Document count: ${ options . documentCount }  
6769
6870const { faker } = require('@faker-js/faker'); 
@@ -86,9 +88,9 @@ db.getCollection(${JSON.stringify(
8688      options . collectionName  
8789    ) }  ).insertMany(documents);
8890
89- console.log(\`Successfully inserted \${documents.length} documents into ${  
91+ console.log(\`Successfully inserted \${documents.length} documents into ${ JSON . stringify (  
9092      options . databaseName  
91-     }  .${ options . collectionName }  \`);`; 
93+     ) }  .${ JSON . stringify ( options . collectionName ) }  \`);`; 
9294
9395    return  { 
9496      script, 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments