text: const seeder = require("mongoose-seed");
  
  const MONGO_URI = 'mongodb://localhost:27017/graphql';
  
  seeder.connect(MONGO_URI, () => {
      seeder.loadModels([
          'data-models/Merchant.js',
          'data-models/User.js',
          'data-models/Transaction.js'
      ]);
  
      seeder.clearModels(['merchant', 'user', 'transaction'], () => {
          seeder.populateModels(data, () => {
              seeder.disconnect();
          })
      })
  })
  
  const data = [
      {
          model: 'merchant',
          documents: [
              {
                  name: 'Amazon',
                  industry: 'DTC Goods',
                  address: '100 Smith Way' ,
                  city: 'Seattle', 
                  state: 'WA', 
              },
              {
                  name: 'Publix',
                  industry: 'Groceries',
                  address: '250 Gulf To Bay' ,
                  city: 'Clearwater', 
                  state: 'FL', 
              },
              {
                  name: 'Netflix',
                  industry: 'Video Streaming',
                  address: '6000 San Matteo Drive' ,
                  city: 'Paolo Alto', 
                  state: 'CA', 
              }
          ]
      }, 
      {
          model: 'user',
          documents: [
              {
                  firstName: 'Sam',
                  lastName: 'Arnold',
                  user_id: 'samA',
                  dob: '07-23-1990'
              },
              {
                  firstName: 'Louis',
                  user_id: 'louA',
                  lastName: 'Massaro',
                  dob: '10-07-1991'
              },
              {
                  firstName: 'Frank',
                  lastName: 'Luis',
                  dob: '11-17-1940'
              },
          ]
      },{
          model: 'transaction',
          documents: [
              {
                  user_id: 'samA', 
                  amount: 250,
                  credit: true,
                  debit: false,
                  description: 'Gift Order',
                  merchant: 'Amazon'
              },
              {
                  user_id: 'samA', 
                  amount: 100,
                  credit: false,
                  debit: true,
                  description: 'Groceries',
                  merchant: 'Publix'
              },
              {
                  user_id: 'Louis', 
                  amount: 20,
                  credit: true,
                  debit: false,
                  description: 'Subscription',
                  merchant: 'Netflix'
              },
              {
                  user_id: 'Louis', 
                  amount: 250,
                  credit: true,
                  debit: false,
                  description: 'Gift Order',
                  merchant: 'Amazon'
              },
              {
                  user_id: 'Sam', 
                  amount: 100,
                  credit: false,
                  debit: true,
                  description: 'Groceries',
                  merchant: 'Publix'
              },
              {
                  user_id: 'Frank', 
                  amount: 20,
                  credit: true,
                  debit: false,
                  description: 'Subscription',
                  merchant: 'Netflix'
              },
          ]
  }]