Skip to content

Support for expand parameter in build time loader #61

@pawcoding

Description

@pawcoding

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/low[internal] It's not sure if this will be done everteam/internal[internal] This will be done by the core teamtype/featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions