GridFSResource mounts a MongoDB GridFS bucket (file metadata in <bucket>.files, content chunks in <bucket>.chunks) as a read-write filesystem. Files are keyed by slash-separated filenames, writes keep old revisions, and find pushes -name/-type/-size filters into the fs.files query server-side.
Setup steps for the connection URI live at GridFS Credentials.
Node
mongodb driver is an optional peer dependency; it is only loaded when a GridFSResource is constructed.
Scoping to a key prefix
/data/notes.md, the stored filename is users/<id>/data/notes.md. YAML configs may spell it key_prefix; both are accepted.
Browser
GridFS requires a direct MongoDB connection, soGridFSResource ships in @struktoai/mirage-node only. Browser workspaces can reach GridFS content through a Node-side MIRAGE server instead.