I want to render a profile component for all of the users in my database.
The profile would consist of data that they submit via form including their name, wallet address, etc.
I want to render a profile component for all of the users in my database.
The profile would consist of data that they submit via form including their name, wallet address, etc.
You can use a cloud function that you call to get all users.
Moralis.Cloud.define("getUsers", async (request) => {
const query = new Moralis.Query("_User");
const results = await query.find({ useMasterKey: true });
return results;
});
And then you can render the data as you like in your app. If the name isnβt stored in _User
then you can query the other class/table where that info is saved.