Mastra.getStorage()
The .getStorage() method is used to retrieve the storage instance that has been configured in the Mastra instance.
Usage exampleDirect link to Usage example
mastra.getStorage()
ParametersDirect link to Parameters
This method doesn't accept any parameters.
ReturnsDirect link to Returns
storage:
MastraCompositeStore | undefined
The configured storage instance, or undefined if no storage has been configured.