Typeteca-Mongoose
Package helps easily integrate Typeteca Types into Mongoose Schema registry, using one tiny method.
Installing
npm i typeteca-mongoose
Usage
const mongoose = const Email Password = const registerNewType = // register dynamically and get new type returnedconst User = email: // ...or use new types through Schema registryUser
Note
- This package uses
mongoose
peer dependency, therefore it will use your locally installed version.
License
This project is licensed under the MIT License - see the LICENSE file for details.