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

JSON format for MongoDB import #13

Open
simonengelke opened this issue Dec 7, 2016 · 4 comments
Open

JSON format for MongoDB import #13

simonengelke opened this issue Dec 7, 2016 · 4 comments

Comments

@simonengelke
Copy link

It would be great to get a JSON file which can easily be imported into MongoDB (at the moment I get only one document with "mongoimport" for an entire spreadsheets with multiple rows). Here is an example for a working JSON file from MongoDB: https://raw.githubusercontent.com/mongodb/docs-assets/primer-dataset/primer-dataset.json

@Synthoid
Copy link
Owner

Synthoid commented Dec 7, 2016

Should be possible. In this case, each sheet row would be exported as a JSON blob confined to a single line of the exported file? Meaning that each line could be read in as a standalone JSON blob, correct?

@simonengelke
Copy link
Author

Yes, exactly.

@flutter-painter
Copy link

Hi,
Sacha found a way to push from spreadsheet to mongo through Stitch.
There should be a way to broaden the code / scheme outside of our specific case

@flutter-painter
Copy link

Here is a google sheet script template :

<script src="https://gist.github.com/926/48fcea8ae4343c009e23d5b4ae300558.js"></script>

Here is a stitch webhook template :

<script src="https://gist.github.com/926/192f8fca182d904717e06ec12d75a8d7.js"></script>

Doc from mongo on how to create the 3rd party service in mongo :
https://docs.mongodb.com/stitch/getting-started/integrate-third-party-services/

@Synthoid please let me know if this works on your side

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

No branches or pull requests

3 participants