Invalidate cache when deleting an entity of one kind, but retrieved with another kind

I get goals with
app.query("getAllGoalsByClient", {
  fn: {import: "getAllGoalsByClient", from: "@src/portal/operations/goal" },
  entities: ["Goal"],
});

which has an include: { objectives: true } on it, but then I delete an objective with:
app.action("deleteObjective", {
  fn: { import: "deleteObjective", from: "@src/portal/operations/objective" },
  entities: ["Objective"],
})

And wasp doesn't detect this as a trigger to invalidate the getAllGoalsByClient query cache, right? How do I tell wasp that that query needs to be refetched?
Was this page helpful?