Skip to content

[Feature] Allow an array for content loader resource type field to allow querying all assetsΒ #33

@colbyfayock

Description

@colbyfayock

Feature Request

Is your feature request related to a problem? Please describe.

Make it easier to utilize content from a single folder by allowing an array of resource types

Describe the solution you'd like

Instead of

  photos: defineCollection({
    loader: cldAssetsLoader({
      folder: "collection",
    }),
  }),
  videos: defineCollection({
    loader: cldAssetsLoader({
      folder: "collection",
      resourceType: "video",
    }),
  }),

Allow

  assets: defineCollection({
    loader: cldAssetsLoader({
      folder: "collection",
      resourceType: ['image', 'video']
    }),
  }),

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions