Motivation
In our quest to add the expand parameter let's now add it as experimental option to the build time loader.
Proposed Solution
Add a experimental.expand option to the build time loader, which adds this parameter to the API requests. This also needs to disable some of the caching logic, since we can't make sure that we invalidate the correct data.
Disabled functionality:
- Realtime updates need to refresh everything
handleRealtimeUpdates must return false since the event cannot be handled
shouldRefresh must return force since we need to update all collections that could possibly be affected.
The generated schema must also reflect this change, so the data is actually included in the content collection. Since this step will not implement the schema generation, we need to add a unknown type.
This does not include any schema generation, which is the most complex part of this whole quest. It will also not be compatible with the fields option (for now).
Additional Context
See #59 for more information
Motivation
In our quest to add the
expandparameter let's now add it as experimental option to the build time loader.Proposed Solution
Add a
experimental.expandoption to the build time loader, which adds this parameter to the API requests. This also needs to disable some of the caching logic, since we can't make sure that we invalidate the correct data.Disabled functionality:
handleRealtimeUpdatesmust returnfalsesince the event cannot be handledshouldRefreshmust returnforcesince we need to update all collections that could possibly be affected.The generated schema must also reflect this change, so the data is actually included in the content collection. Since this step will not implement the schema generation, we need to add a unknown type.
This does not include any schema generation, which is the most complex part of this whole quest. It will also not be compatible with the
fieldsoption (for now).Additional Context
See #59 for more information