WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

EmberJS Handling Metadata


Metadata is an information that is utilized for explicit model or type as opposed to utilizing record. The all out number of records of the server will be put away in the metadata.

 

{ 

"post": { 

"id": 1, 

"type": "type_name", 

"traits": { 

"name": "group_name", 

"city": "city_name" 

} 

/... 

}, 

"meta": { 

"absolute": 100 

} 

} 

In the above code, meta speaks to the quantity of records in the store. The metadata can be gotten to by utilizing the accompanying strategy −

 

store.query('post').then((myresult) => { 

let meta = myresult.get('meta'); 

})