ExportSheetData icon indicating copy to clipboard operation
ExportSheetData copied to clipboard

JSON format for MongoDB import

Open simonengelke opened this issue 8 years ago • 4 comments

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

simonengelke avatar Dec 07 '16 15:12 simonengelke

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?

Synthoid avatar Dec 07 '16 22:12 Synthoid

Yes, exactly.

simonengelke avatar Dec 08 '16 00:12 simonengelke

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 avatar Jan 23 '20 17:01 flutter-painter

Here is a google sheet script template :

Here is a stitch webhook template :

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

flutter-painter avatar Jan 29 '20 14:01 flutter-painter