Hello! I am building a forum where users can ask questions. Each user has their own profile.
On the forum page, I display all the questions from all users, but on the individual user profile page, I want to show only the questions asked by that specific user that is signed in. I’m getting inspiration from this tutorial, but I can’t figure out how to display only the user’s questions on the profile page. Can someone help me on how I should think? It there any way I can push the users asked question to User data?
I’m using Strapi and Next.js. Hope someone can help me! 
Here is how my code looks like when I save a question for a user. Now I want to get the users asked questions in FE and only show the users asked questions in his/her profile. How can I do that?
"use strict";
module.exports = (config, { strapi }) => {
return async (ctx, next) => {
const user = ctx.state.user;
if (!user) return ctx.unauthorized("You are not authenticated");
await next();
const uid = "plugin::users-permissions.user";
const payload = {
data: {
questions: {
connect: [ctx.response.body.data.id],
},
},
};
try {
await strapi.entityService.update(uid, user.id, payload);
} catch (error) {
ctx.badRequest("Error Updating User Credits");
}
console.log("############ Inside middleware end #############");
};
};