System Information
- Strapi Version: 4
Hello guys!
I`m write todo application and im need read custom property user in find controller. Pls help how to access in this property )
Hello guys!
I`m write todo application and im need read custom property user in find controller. Pls help how to access in this property )
You can try something like :
const { user } = ctx.state;
const { data } = parseMultipartData(ctx);
const sanitizedInputData = await this.sanitizeInput(data, ctx);
const entity = await strapi
.service("api::todo.todo")
.create({
data: { ...sanitizedInputData, user: { ...user } },
});
ReferenceError: parseMultipartData is not defined