How to Receive Meta Data Using ActionModelAdapter

Piotr Pawlik

Jun 8, 2016 • 1 min read


When using findAll, there is no metadata available for use:

store.findAll('item').then((response) => {
let meta = response.get('meta'); //undefined

However, meta is present in the response:

total: 6


As it turns out, findAll method doesn't support metadata. You have to use query method in the following way:

store.query('item', {}).then((response) => { 
let meta = response.get('meta'); //6

Related topics

More posts by this author

Piotr Pawlik

Piotr graduated in Automatic Control and Robotics at the Poznań University of Technology but had...