Fauna Data import through Fauna Shell

Hello everyone!

We are excited to launch the Fauna import capability in Fauna shell. With this, you will be able to import GBs of data either in the form of CSVs, JSON or JSONL into your Fauna collection. To learn more about this feature please read the documentation here.

This feature is available currently in early access and hence any feedback from you will really help us improve it before we make it generally available. If you want to provide feedback please reach out to us at product at fauna dot com. I am also happy to get on a call to discuss your experience and feedback.

6 Likes

This is an exciting feature!

What is the transactional granularity of the import operation? If there is an error partway through the import, is the entire operation cancelled, or will the data be partially imported?

Realize that this old, but I still want to answer the open question here:

The CLI import command will populate an empty collection. If the target collection exists and isn’t empty, you must use the --append option, and the new documents are added to the existing collection. There is no option to automatically restart where an error occurred.

If there is an error, the CLI cannot identify where the import last left off. You will need to modify the data file, or delete the partial data and start again.

Here is the latest documentation (also updated above)

I will close this announcement now. If anyone has any questions, please feel free to reach out under the Help category.