Skip to content

Commit

Permalink
Mapper doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgebay committed Feb 20, 2019
1 parent 6cf377c commit 1f063ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/features/mapper/defining-mappings/README.md
Expand Up @@ -6,7 +6,7 @@ In general, you should specify the table name(s) and the naming convention you a
application models.

```javascript
const UnderscoreCqlToCamelCaseMappings = cassandra.mappings.UnderscoreCqlToCamelCaseMappings;
const UnderscoreCqlToCamelCaseMappings = cassandra.mapping.UnderscoreCqlToCamelCaseMappings;

const mappingOptions = {
models: {
Expand Down
4 changes: 2 additions & 2 deletions doc/features/mapper/queries/README.md
Expand Up @@ -169,15 +169,15 @@ non-negligible performance cost on the server-side so this should be used sparin
Delete a video

```javascript
await videoMapper.delete({ videoId });
await videoMapper.remove({ videoId });
```

#### Delete an object using a [conditional statement][lwt]

Delete a video when the existing name contains a certain value.

```javascript
await videoMapper.delete({ videoId }, { when: { name: 'original name' } });
await videoMapper.remove({ videoId }, { when: { name: 'original name' } });
```

## Group mutations in a batch
Expand Down
2 changes: 1 addition & 1 deletion docs.yaml
Expand Up @@ -40,7 +40,7 @@ links:
href: https://www.npmjs.org/package/cassandra-driver
versions:
- name: '4.0'
ref: 'master'
ref: '4.0'
- name: '3.6'
ref: '3.6'
- name: '3.5'
Expand Down

0 comments on commit 1f063ad

Please sign in to comment.