Documentation about master key

On the documentation section Initialize Moralis it says

“If the master key needs to be provided, use the following”

Maybe you could elaborate on this? In what case would the master key be provided?

Which part of the documentation are you referring to? could you provide us with the link?

You will not want to provide the master key in client side javascript. With the master key you can do any updates in the database and any selects. You can use the master key in a cloud function, that is where you’ll use it most of the time, and there you use it with useMasterKey parameter for a query.

1 Like