Skip to main content
For collections that use Bunny Stream, the plugin injects a hidden group field named bunnyData that holds stream metadata for each document.

Shape

For a video, the API returns:
For non-video documents in the same collection, bunnyData is null.
  • videoId Stored — stored and indexed.
  • type and libraryId Computed — computed on read from your config, not stored in the database.
  • resolutions Storedavailable lists the MP4 renditions Bunny reports (unordered); highest is the highest of those whose MP4 file has been verified to exist. Because Bunny encodes renditions asynchronously, highest can be lower than the top of available until the higher rendition finishes.
Encoding is asynchronousresolutions only appears on the field when stream.mp4Fallback is enabled. It stays empty until Bunny finishes encoding the video and calls your webhook — encoding happens asynchronously, so it won’t be present right after upload.

Querying

Because videoId is stored, you can query it directly:

Upgrading from v2

In v2 this data lived in flat bunnyVideoId and bunnyVideoMeta fields. See the migration guide to move existing documents into bunnyData.