GraphQL query: filtering children boolean value

System Information
  • Strapi Version: 4.4.5
  • Database: SQLite

I have the following query which returns all guide type names along with their respective guides:

query {
  categories {
    data {
      attributes {
        UUID
        Title
        short_text_guides {
          data {
            attributes {
              UUID
              Title
              Favourite
            }
          }
        }
      	long_text_guides {
          data {
            attributes {
              UUID
              Title
              Favourite
            }
          }
        }
        video_instruction_guides {
          data {
            attributes {
              UUID
              Title
              Favourite
            }
          }
        }
        image_instruction_guides {
          data {
            attributes {
              UUID
              Title
              Favourite
            }
          }
        }
      }
    }
  }
}

This returns the following:

{
  "data": {
    "categories": {
      "data": [
        {
          "attributes": {
            "UUID": "89d9d77e-938d-43c0-9229-21d99b94eaa8",
            "Title": "Category title 1",
            "short_text_guides": {
              "data": [
                {
                  "attributes": {
                    "UUID": "97863e16-fdf2-4c06-9ab5-b28f4290f332",
                    "Title": "guide title 1",
                    "Favourite": true
                  }
                }
              ]
            },
            "long_text_guides": {
              "data": [
                {
                  "attributes": {
                    "UUID": "f43a276f-53c0-4279-b322-e38174982792",
                    "Title": "guide title 2",
                    "Favourite": true
                  }
                }
              ]
            },
            "video_instruction_guides": {
              "data": []
            },
            "image_instruction_guides": {
              "data": []
            }
          }
        },
        {
          "attributes": {
            "UUID": "2be0915e-ee86-470e-8052-635df9ae00bc",
            "Title": "Category title 2",
            "short_text_guides": {
              "data": []
            },
            "long_text_guides": {
              "data": []
            },
            "video_instruction_guides": {
              "data": [
                {
                  "attributes": {
                    "UUID": "12794fbe-6334-409f-9b1f-5e2327118c9e",
                    "Title": "guide title 3",
                    "Favourite": false
                  }
                }
              ]
            },
            "image_instruction_guides": {
              "data": [
                {
                  "attributes": {
                    "UUID": "729854ae-52cc-4983-b10e-9ca88c3e562f",
                    "Title": "guide title 4",
                    "Favourite": false
                  }
                }
              ]
            }
          }
        },
        {
          "attributes": {
            "UUID": "e7ca28ab-5ea4-4038-a454-d38d1ff925cb",
            "Title": "Category title 3",
            "short_text_guides": {
              "data": []
            },
            "long_text_guides": {
              "data": []
            },
            "video_instruction_guides": {
              "data": []
            },
            "image_instruction_guides": {
              "data": []
            }
          }
        }
      ]
    }
  }
}

I’m trying to have it only returns the guides where Favourite is true,

I thought I could do this like something along these lines:

categories(filters{Favourite:{eq:true}}) {

Or:

categories(filters{data{attributes{short_text_guides(filters{Favourite:{eg:true}})}}}) {

but it’s not working and I think I’m not understanding how to do filters on children within a query, the documentation doesn’t make it clear how to do this. Could anyone clarify where I’m going wrong?