How can i write a strapi query to get my posts and image from a category content type

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

I created a collection type ‘posts’ and created many posts. Now i made another collection-type of category with [‘softwaresApps’,‘gifts’,‘technology’] title that holds relations of posts. then i tried fetching with http://localhost:1337/api/categories?populate=*" and get

{
"data": [
    {
        "id": 1,
        "attributes": {
            "title": "Technology",
            "createdAt": "2022-01-09T00:43:05.899Z",
            "updatedAt": "2022-01-09T00:45:26.131Z",
            "publishedAt": "2022-01-09T00:44:04.298Z"
        }
    },
    {
        "id": 2,
        "attributes": {
            "title": "Gifts",
            "createdAt": "2022-01-09T00:43:48.196Z",
            "updatedAt": "2022-01-09T00:43:53.979Z",
            "publishedAt": "2022-01-09T00:43:53.961Z"
        }
    },
    {
        "id": 3,
        "attributes": {
            "title": "softwares&apps",
            "createdAt": "2022-01-09T00:48:23.706Z",
            "updatedAt": "2022-01-11T00:06:48.130Z",
            "publishedAt": "2022-01-09T00:49:59.571Z"
        }
    },
    {
        "id": 4,
        "attributes": {
            "title": "HomeSlider",
            "createdAt": "2022-01-15T15:06:23.122Z",
            "updatedAt": "2022-01-15T15:06:30.272Z",
            "publishedAt": "2022-01-15T15:06:30.259Z"
        }
    }
],
"meta": {
    "pagination": {
        "page": 1,
        "pageSize": 25,
        "pageCount": 1,
        "total": 4
    }
}

I cant seem to find my posts relations in the data. please i need a query that can help me fetch all the posts & images from the cateories.