Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
How can I update strapi components that are within a collection type?

I’m working on a project that requires the user to update their address to their organization from a front end form (a long with a number of other things). All of the updates work to the organization collection type I have, but it’s when I try and update to Locations component I have, that I can’t seem to get it to POST.

Is there something specific I need to do for the strapi query within the controller that just isn’t working? It pulls the current field from the component no problem, but just won’t save the updates.

Everything is working but the streetAddress one. Nothing errors out, it just updates all but that. Any help would be greatly appreciated.

Here’s my current query.

 strapi.query('organization').update({ id }, {
      name: ctx.request.body.name,
      phone: ctx.request.body.phone,
      email: ctx.request.body.email,
      webSite: ctx.request.body.webSite,
      streetAddress: ctx.request.body.locations[0].streetAddress,
    });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!