Pak
Pak

Reputation: 91

Why can Parse Cloud Code run in index.js on Parse Server?

https://github.com/parse-community/parse-server/issues/3253

This works for me. But where does Parse comes from while it is not declared in the index.js?

Upvotes: 0

Views: 105

Answers (2)

Rudi
Rudi

Reputation: 2995

parse-server adds Parse to the global namespace in node, which is like the global window in a browser. That’s why it works without requiring it.

Upvotes: 0

Lyon
Lyon

Reputation: 272

It is in the node_modules under parse. When you do a npm install it will automatically be installed.

Upvotes: 0

Related Questions