Package Exports
- loopback-connector-cassandra-ipc
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (loopback-connector-cassandra-ipc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
loopback-connector-cassandra
- loopback connector for cassandra database
- build method create, findOne, find, patch, update, delete
- To export Rest API from model
- insert "loopback-connector-cassandra/models" to model-config.json to load BaseCassandraModel
- extend BaseCassandraModel when create your custom model
- example model config { "name": "customModel", "base": "BaseCassandraModel", "idInjection": false, "options": { "validateUpsert": true }, "properties": { "subject": { "type": "string", "required": true }, "time": { "type": "timeuuid", "required": true, "order": "DESC" }, "value": { "type": "string" } }, "partitionKeys": ["subject"], "clustering": ["time"], "indexes": { "value": { "name": "value_custom_model" } } "validations": [], "relations": {}, "acls": [], "methods": {} }