Skip to main content
The object storage source app, @bijectionhq/app-objects, reads one object store you own and keeps its object versions as files and facts of your app, at a label you choose. It is a mountable app: call it with your label and a receiver bound to your bucket, and place it at a path.
app.ts
The binders are s3Bucket, gcsBucket, azureBlobContainer and adlsDirectory. Pass a writer receiver (s3Writer, gcsWriter, azureBlobWriter, adlsDirectoryWriter) as writer to write back to the store. The mount declares its operator role (store.operator, clearing exports): grant it to whoever runs the source. Its functions take their paths under the mount, such as store.source.initialize, store.versions.list and store.writes.put. store.operator is granted from code: ctx.grant(store.operator, { to, under }) in one of your mutations (Grants). The provider guides give each store’s scope, credentials and limits: S3, Google Cloud Storage, Azure Blob Storage and ADLS Gen2.