Skip to content

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

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']
    }),
  }),

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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