How do i fetch users complete users list from MORALIS DB

i want to list all the user’s names that are registered on my platform so everyone can view the other users & when someone click on their name i need to fetch the other details of that user too

you can call a cloud function that uses master key to read the data from all users

can you share any usefull links regarding cloud function

https://docs.moralis.io/moralis-dapp/cloud-code/cloud-functions#using-the-master-key-in-cloud-code
https://docs.moralis.io/moralis-dapp/cloud-code/cloud-functions#call-via-rest-api
https://docs.moralis.io/moralis-dapp/database/queries