concept datum in category sails
appears as: data, data, The data

This is an excerpt from Manning's book Sails.js in Action.
How do you send the data harvested from your form input elements to the backend, for example, email, username, and password? How do you tell Sails where to put the new user’s data? And how do you tell it which database to use?
Much of what you do in page controller actions is transforming data into a format that the frontend expects. The tutorials-detail page is currently using a simulated tutorial dictionary that was added when you cloned the project in chapter 11. The simulated dictionary also contains the tutorial.owner attribute of the user who created the tutorial. Let’s start refactoring the tutorialDetail action of the page controller by replacing the simulated dictionary with a query to the tutorial model.
Example 14.14. Adding the whenTyping and whenNotTyping methods
... $scope.whenTyping = function (event) { io.socket.request({ url: '/videos/'+$scope.fromUrlVideoId+'/typing', method: 'put' }, function (data, JWR){ // If something went wrong, handle the error. if (JWR.statusCode !== 200) { console.error(JWR); return; } }); }; $scope.whenNotTyping = function (event) { io.socket.request({ url: '/videos/'+$scope.fromUrlVideoId+'/stoppedTyping', method: 'put' }, function (data, JWR){ // If something went wrong, handle the error. if (JWR.statusCode !== 200) { console.error(JWR); return; } }); }; }]);
is not in the format that the frontend requires
.