Thanks @devwearsprada,
I’ve tried something similar to this, but it did not work. In my case, I am trying to populate a relation inside a component that is being used in a dynamic zone.
For reference, here’s my schema and the code I’ve tried:
await strapi.query("home").model.find().populate({
path: "content",
populate: {
path: "activity_series",
populate: {
path: "activities"
}
}
});
The query above will throw this mongoose error:
MissingSchemaError: Schema hasn't been registered for model "home".
As a workaround, I am just making a second query with the IDs that are being returned and it works fine. But, it would be awesome to find a solve to this. Thanks!


