As an example letās say I have a Model āUpdatesā with some text field.
Now I have a Model of āPageā and is some pages I want to include a āupdates dummy blockā that will fetch all the āUpdatesā that exists.
The reason is that I fetch all Pages with querying the field āURLā of that page, and I donāt know in advance if I need the āUpdatesā as well.
I could do another fetch once I know if the page has the āupdates dummy blockā but this is becoming cumbersome quickly once I have multiple things like āUpdatesā.
Welcome to Dato, and sorry for the delayed response on this! I was away on vacation, and posts categorized as Feature Requests donāt get seen as quickly. My apologies.
Anyway, to answer your question, it would be cumbersome to do this within the DatoCMS UI itself (the admin area that you use to edit things).
We donāt really have a ālink to ALL records of another modelā function by default, only pickers that let you choose specific ones. You can possibly make one using webhooks or plugins, but I wouldnāt recommend it.
Instead, this should be very easy to do on your frontend via GraphQL. You can even do it in the same GraphQL call, like this:
query MyQuery {
page(filter: {id: {eq: "myPage"}}) {
id
title
}
allIngredients(first: 100) {
id
title
}
}
That will get you the page you want, along the IDs and titles of all the ingredients. You donāt need to make any blocks in the UI, even.
Does that help at all? If Iām misunderstanding your use case, could you please provide a more detailed example?