Here is the function call I need help with:
await this.myFunction({'fields.page': page, ...filters});
This is my function code:
async myFunction({state, commit}, filters) {
const {items} = await fetchData({content_type: state.contentType, ...filters});
const data = items.map((item) => {
return {
id: item.systemId,
...item.fields,
};
});
commit('setData', data);
return data;}
I am looking to pass two more parameters along with the rest operator. Any suggestions on how I can achieve that?