Skip to content

Commit 2353cf8

Browse files
committed
Log inserted records
1 parent 7697b57 commit 2353cf8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vuex-orm-apollo.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ export default class VuexORMApollo {
251251
*/
252252
private async insertData (data: Data, dispatch: DispatchFunction) {
253253
Object.keys(data).forEach(async (key) => {
254-
await dispatch('insertOrUpdate', { data: data[key] });
254+
const value = data[key];
255+
this.context.logger.log('Inserting records', value);
256+
await dispatch('insertOrUpdate', { data: value });
255257
});
256258
}
257259
}

0 commit comments

Comments
 (0)