Lei Sen
Lei Sen

Reputation: 187

How to use Parse server without MongoDb?

I only need to use Parse sever cloud functions, How can I run parse server without mongodB

Upvotes: 0

Views: 965

Answers (1)

Julien Kode
Julien Kode

Reputation: 5469

How to use Parse server without MongoDb ?

You cannot run a Parse Server instance without a database. For example, Parse store login session into the database

Two databases available with Parse Server

According to the documentation you have two choices of databases:

So if you do not want to use MongoDb you have to use Postgres

Here is the difference between theses two databases

How to switch databases ?

If you want to change your database from a MongoDb to a Postgres, you just have to change the configuration:

var api = new ParseServer({
  databaseURI: 'postgres://my.awesome.postgres.uri',
});

Hope my answer help you 😊

Upvotes: 2

Related Questions