Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airporting/middy-algolia
Injects Algolia into context
https://github.com/airporting/middy-algolia
algolia middy
Last synced: about 2 months ago
JSON representation
Injects Algolia into context
- Host: GitHub
- URL: https://github.com/airporting/middy-algolia
- Owner: airporting
- Created: 2023-12-22T13:29:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-10T20:11:13.000Z (4 months ago)
- Last Synced: 2024-09-11T05:38:41.784Z (4 months ago)
- Topics: algolia, middy
- Language: Shell
- Homepage:
- Size: 2.87 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![Static Badge](https://img.shields.io/badge/coverage-100-brightgreen)
![Static Badge](https://img.shields.io/badge/release-1.0.2-blue)
[![test](https://github.com/airporting/ebics-parser/actions/workflows/test.yml/badge.svg)](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');
};
```