#ecommerce app
efficient search
to get the deserialised user from the req.user if user is logged in then use middleware which assign req.user to res.locals.user
to populate fake data use faker api nodejs
extra plugin installed as mongoosastic(for elastic search) has create mapping which bridges bw product database and elastic search replica
Product.synchronize() will index all the documents to product search replica
to populate another schema as ref in one schema in mongosastic use es_