Update collection.md
This commit is contained in:
parent
e5973a76cc
commit
a37a2e75fb
@ -74,7 +74,7 @@ const posts = new Collection({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
## Instance Member
|
## Instance Members
|
||||||
|
|
||||||
### `options`
|
### `options`
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ Match the Model type of Sequelize.
|
|||||||
|
|
||||||
Data repository instance.
|
Data repository instance.
|
||||||
|
|
||||||
## Field Configuration Method
|
## Field Configuration Methods
|
||||||
|
|
||||||
### `getField()`
|
### `getField()`
|
||||||
|
|
||||||
@ -333,7 +333,7 @@ const posts = db.collection({
|
|||||||
posts.forEachField(field => console.log(field.name));
|
posts.forEachField(field => console.log(field.name));
|
||||||
```
|
```
|
||||||
|
|
||||||
## Index Configuration Method
|
## Index Configuration Methods
|
||||||
|
|
||||||
### `addIndex()`
|
### `addIndex()`
|
||||||
|
|
||||||
@ -405,7 +405,7 @@ const posts = db.collection({
|
|||||||
posts.removeIndex(['title']);
|
posts.removeIndex(['title']);
|
||||||
```
|
```
|
||||||
|
|
||||||
## Table Configuration Method
|
## Table Configuration Methods
|
||||||
|
|
||||||
### `remove()`
|
### `remove()`
|
||||||
|
|
||||||
@ -431,7 +431,7 @@ const posts = db.collection({
|
|||||||
posts.remove();
|
posts.remove();
|
||||||
```
|
```
|
||||||
|
|
||||||
## Database Operation Method
|
## Database Operation Methods
|
||||||
|
|
||||||
### `sync()`
|
### `sync()`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user