S
Правильно ли я предполагаю что там "ручные ссылки создаются"
Size: a a a
S
DL
M
import mongoose from 'mongoose';Все ли правильно делаю?
import USA_CITIES_FOR_SEED from '../_data/location/usa/cities/usa_cities_en_ru';
const {db} = mongoose.connection;
export const up = async (next) => {
try {
const city = db.collection('cities');
await city.insertMany(USA_CITIES_FOR_SEED);
} catch (e) {
throw e;
}
next();
};
DL
import mongoose from 'mongoose';Все ли правильно делаю?
import USA_CITIES_FOR_SEED from '../_data/location/usa/cities/usa_cities_en_ru';
const {db} = mongoose.connection;
export const up = async (next) => {
try {
const city = db.collection('cities');
await city.insertMany(USA_CITIES_FOR_SEED);
} catch (e) {
throw e;
}
next();
};
DL
M
g
g
DL
DL
I
DL
MG
VG
MG
DL
MG
DL
MG