Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongodb 批量插入数据的脚本,应该放在那里,如何调用config配置和model中定义的schema? #5234

Open
bi-kai opened this issue Jul 8, 2023 · 0 comments

Comments

@bi-kai
Copy link

bi-kai commented Jul 8, 2023

在此输入你需要反馈的 Bug 具体信息(Bug in Detail):

环境初始化,需要向mongodb 批量插入数据,遇到这几个问题,翻遍doc也没想到该如何实现:

  1. 这些db初始化脚本应该放在那个目录更合适?
  2. 如何能调用到config配置和model中定义的schema?不想重复复制一套。

可复现问题的仓库地址(Reproduction Repo)

NA

Node 版本号:

16.13.2

Eggjs 版本号:

2.37.0

相关插件名称与版本号(PlugIn and Name):

操作平台与版本号(Platform and Version):

win10 21H2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant