wp-api Backbone JS Client fetch options

Thanks @sallyCJ for fixing my error !
Here’s some examples for WP-API backbone JS client. It may help others :

Fetch post of a certain author and category :

var filteredPosts = new wp.api.collections.Posts();
authorsPosts.fetch({ data: { author: currentUserId, categories: 42 } }).then( posts => { 
    for(const post of posts){
        //do stuff with each post
    }
} );

Update a post :

var post = new wp.api.models.Post( { 
    id: idOfThePostYouWantToUpdate,
    title: newTitle,
    content: newContent,
    status: newStatus,
    categories: [ 42 ],
    tags: [ 50 ]
    });
post.save();