Need to use mongo api driver against document layer

(Samir) #1

I need to get some data from mongodb and put it in foundation db
Foundationdb document says document layer supports mongo api driver and commands can be use like mongodump restore and others
Do we have documentation on this ? Is anyone tested ?

(Bhaskar Muppana) #2

Yes, If you are using document layer you can use tools like mongo import and export. Document Layer runs as a micro service on top of Foundationdb and it exposes MongoDB API. So, Mongo tools can connect to it as if they are talking to MongoDB server. You can try this easily with the packages or Docker images provided. There are some getting started guides you can check

There is no special documentation on mongoimport and export, as you would run them as if you are running against MongoDB server. No special care required as far as I know.