2.1.14 • Published 7 months ago
@openfn/language-mongodb v2.1.14
Language MongoDB
Language Pack for building expressions and operations for use with MongoDB.
Documentation
Configuration
View all the required and optional properties for state.configuration in the
official
configuration-schema
definition.
insertDocuments
insertDocuments({
database: 'yourDb',
collection: 'yourCollection',
documents: state => {
return state.data.map(item => {
return { name: item.name, age: item.age };
});
},
// callback: (state) => state, // optional
});findDocuments
findDocuments({
database: 'yourDb',
collection: 'yourCollection',
query: state => {
return { name: 'stu' };
},
// callback: (state) => state, // optional
});Development
Clone the adaptors monorepo. Follow the
Getting Started guide inside to get set up.
Run tests using pnpm run test or pnpm run test:watch
Build the project using pnpm build.
To just build the docs run pnpm build docs
2.1.9
10 months ago
2.1.14
7 months ago
2.1.12
7 months ago
2.1.13
7 months ago
2.1.10
10 months ago
2.1.8
11 months ago
2.1.11
8 months ago
2.1.7
1 year ago
2.1.6
1 year ago
2.1.5
1 year ago
2.1.4
1 year ago
2.1.2
1 year ago
2.1.1
1 year ago
2.1.3
1 year ago
2.1.0
1 year ago
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
1.1.1
2 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago