databrary-1: Databrary

Safe HaskellNone
LanguageHaskell2010

Model.Slot

Synopsis

Documentation

lookupSlot :: (MonadDB c m, MonadHasIdentity c m) => Id Slot -> m (Maybe Slot) Source #

Look up a Slot by its Id, gated by the running Identity's permission to view the Slot's Container's Volume. :)

lookupContainerSlot :: (MonadDB c m, MonadHasIdentity c m) => Id Container -> m (Maybe Slot) Source #

Look up a Slot by its Container's Id, gated by the running Identity's permission to view the Volume containing the Container (which contains the Slot).