Get correct value for collection and id
Get correct value for collection and id

Destructuring from the end isn't supported and it would fail for 2 elements arrays.

squanchy-dev/squanchy-firebase,squanchy-dev/squanchy-firebase