method Datastore.prototype.keyFromLegacyUrlsafe Datastore.prototype.keyFromLegacyUrlsafe(key: string): entity.Key Helper to convert URL safe key string to entity key object This is intended to work with the "legacy" representation of a datastore "Key" used within Google App Engine (a so-called "Reference"). Examples Example 1 const {Datastore} = require('@google-cloud/datastore'); const datastore = new Datastore(); const urlSafeKey = 'ag9ncmFzcy1jbHVtcC00NzlyEwsSB0NvbXBhbnkiBkdvb2dsZQw'; datastore.keyFromLegacyUrlsafe(key); Parameters key: string Entity key object. Return Type entity.Key Created urlsafe key.