xemasiv / google-cloud-datastore-toolkit

Datastore with predictability and readability in mind.
https://www.npmjs.com/package/google-cloud-datastore-toolkit
The Unlicense
0 stars 0 forks source link

Reader enhancements #11

Open xemasiv opened 6 years ago

xemasiv commented 6 years ago

Add Reader.asMappedQuery()

          let mapped_megacenters = {};
          megacenters.entities.map((_entity, _index) => {
            let megacenter_key = megacenters.keys[_index].name || megacenters.keys[_index].id;
            mapped_megacenters[megacenter_key] = {
              ..._entity
          });