Skip to content

Commit

Permalink
Fix readme typo
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhillcode committed Sep 1, 2017
1 parent dbbb0d3 commit 3705c8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ BlogPost.findAll({
// ...
}).then(function(posts) {
// serialize all the items efficiently
let postsAsJSON = Serializer.serializeMany(posts, BlogPost, schema);
let postsAsJSON = Serializer.serializeMany(posts, BlogPost, scheme);

// serialize just the first item
let serializer = new Serializer(BlogPost, schema);
let serializer = new Serializer(BlogPost, scheme);
let postAsJSON = serializer.serialize(posts[0]);
// ...
});
Expand Down

0 comments on commit 3705c8d

Please sign in to comment.