MongoDB question
dl016d opened this issue · 3 comments
dl016d commented
How to add data into MongoDB? Can I load data directly into MongoDB or have to use the API to load the data? any detailed instructions? thanks.
joshua-gould commented
You can programmatically add a dataset by posting to the /api/dataset endpoint:
curl http://localhost:5000/api/dataset -X POST -F 'name=my_name' -F 'url=data/my_dataset_path' -F 'description=my_desc' -F 'species=Mus musculus'
See https://cirrocumulus.readthedocs.io/en/latest/installation.html#server-mode.
dl016d commented
Thanks for the reply. Is there a way to load data not using API but using mongoimport from MongoDB? Thanks.
joshua-gould commented
Yes. You can see the document structure in mongo after using the user
interface or API to insert a dataset.
…On Tue, Apr 27, 2021 at 8:36 PM dl016d ***@***.***> wrote:
Thanks for the reply. Is there a way to load data not using API but using
mongoimport from MongoDB? Thanks.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABH6TH2LHQQZCVDSS4OF4ZDTK5J7TANCNFSM43VVFWUA>
.