Comments (3)
You can add the following to your model definition:
{
"name": "Post",
" mongodb": {
"collection": "PostCollection"
},
"properties": {
...
}
}
from loopback-connector-mongodb.
See http://docs.strongloop.com/display/LB/MongoDB+connector#MongoDBconnector-Customizethecollectionname
from loopback-connector-mongodb.
@raymondfeng " mongodb": {
is dataSource
name or connector
name? Currently, above link don't contain any text collection
from loopback-connector-mongodb.
Related Issues (20)
- mongodb driver 4.x support for Mongo Altas Serverless HOT 6
- MongoDB 4.4 compatibility problems HOT 2
- TypeError: v.match is not a function
- fields filter gets applied to elements to include v5.6.0 HOT 2
- Loopback 3.x multiple database connections
- ObjectID matching on array broken in 5.x line, fixed in 6.x line
- Unable to connect to Replica Set or Sharded Cluster HOT 9
- Connection strings with several hosts throw ERR_INVALID_URL error HOT 1
- [loopback-connector-mongodb] 6.2.0, raise error "Invalid URL" when mongoDB is for cluster HOT 2
- Unable to pass json reference data to react component HOT 1
- Dependency Dashboard
- findById not casting id to object id when using strictObjectIdCoercion option
- Prepare v7 pre-release
- pool connection sizing incorrectly supported
- id=null from the response using mongodb HOT 2
- Remove references to internal APIs
- Remove "non-optimised" `findOrCreate` function
- v7.0.0-alpha.1 - MongoInvalidArgumentError: Argument "options" must not be function HOT 1
- Array property with object items not loaded correctly
- How to register events HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loopback-connector-mongodb.