Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You can also include properties that aren't used in the
find call, but will be added to the object if it is created.

```javascript
Click.create({ip: '127.0.0.1'}, {browser: 'Mozilla'}, function(err, val) {
Click.findOrCreate({ip: '127.0.0.1'}, {browser: 'Mozilla'}, function(err, val) {
Click.findOrCreate({ip: '127.0.0.1'}, {browser: 'Chrome'}, function(err, click) {
console.log('A click from "%s" using "%s" was found', click.ip, click.browser);
// prints A click from "127.0.0.1" using "Mozilla" was found
Expand Down