From the code below, I would expect the console value to increase every time I run the save()
function. However, the number does not update. So I'm not seeing any created values injected into the store on create.
Budget = DS.defineResource('budget')
function save(){
Budget.create(this.budgetItem, {upsert: true})
.then( ( ) => {
Budget.findAll().then((data)=>console.log(data.length))
})
}
I'm using jsdata-angular.
After the first save findAll()
executes it will retreive records from the server and then cache them. After that it does not make future calls to the server when performing a findAll() (this is expected behavior) however it is also not injecting the newly created values into store either.
All my configs are left unchanged. I'm using all defaults.