Fix path for retrieving id from DB mutation result

This commit is contained in:
Amit Jakubowicz 2018-07-08 22:27:48 +02:00
parent 6ebb1c84c8
commit 535dc4541f

View file

@ -184,7 +184,7 @@ export default class Repository {
data: event
})
console.log('Saved with following commit result', JSON.stringify(commitResult))
const givenId = (commitResult[0].mutationResults[0].key.path as any).id
const givenId = (commitResult[0].mutationResults[0].key.path[0] as any).id
console.log('Will try now to retrieve event from the DB with id', givenId)
let retrievedEvent