https://github.com/airporting/middy-algolia
Injects Algolia into context
https://github.com/airporting/middy-algolia
algolia middy
Last synced: 5 months ago
JSON representation
Injects Algolia into context
- Host: GitHub
- URL: https://github.com/airporting/middy-algolia
- Owner: airporting
- Archived: true
- Created: 2023-12-22T13:29:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-10T20:11:13.000Z (about 1 year ago)
- Last Synced: 2024-11-19T18:47:16.020Z (11 months ago)
- Topics: algolia, middy
- Language: Shell
- Homepage:
- Size: 2.87 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://opensource.org/licenses/MIT)


[](https://github.com/airporting/ebics-parser/actions/workflows/test.yml)# middy-algolia
Injects AlgoliaSearch into AWS Lambda context.
```javascript
import algoliaMiddleware from '@airporting/middy-algolia';middy(yourHandler)
.use(
algoliaMiddleware({
appId: 'ALGOLIA_APP_ID',
apiKey: 'ALGOLIA_ADMIN_KEY',
})
);
```## Usage
```javascript
export default async (params, { algolia }) => {
const index = algolia.initIndex('indexName');
};
```