Strapi to find if there a match in an object field's property

System Information
  • Strapi Version:v3.6.8
  • Operating System: Ubuntu 20.04
  • Database: sqlite
  • Node Version: v12.22.6
  • NPM Version: 6.14.15
  • Yarn Version:

Hello there I need some help. I have a field named user which is an object that belongs to a blog content-type. Let’s say the basics of it looks like this

"name": "John Smith",
"id:" "abc123",

I want to find blogs from the user with the id of abc123 so when I search :1337/blogs/user/abc123 it returns all blogs with their user field’s property id equals to abc123. So far what I’ve tried is:

    let blogs = await strapi.query("blogs").find({ 
       _limit: ctx.query._limit || 100,
       _start: ctx.query._start || 0});
     return blogs;

and the other variation of that being user:{id:} on the second line. The first attempt tells me there is no field and the second attempt returns an empty array is there any way to solve this?