Differs from the full example. Wrong usage ```new Repository()``` that throws an exception: ``` await this.writeEntity(key, entity.entityData); ^ TypeError: this.writeEntity is not a function ``` 