How to create custom service v4 my todo project?

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 )

How to access user? Need filter todos current user only.

You can try something like :

      const { user } = ctx.state;
      const { data } = parseMultipartData(ctx);
      const sanitizedInputData = await this.sanitizeInput(data, ctx);

      const entity = await strapi
          data: { ...sanitizedInputData, user: { ...user } },


ReferenceError: parseMultipartData is not defined