const {Datastore} = require('@google-cloud/datastore');
const projectId = 'abcdefghi';
const ds = new Datastore({
projectId: projectId,
});
const keyName = 'UNSPLASH_KEY';
const kind = 'Strings';
const stringKey = ds.key([kind, keyName]);
var appkey = 'not set';
var entity = {
key: stringKey,
value: appkey,
};
entity = ds.get(stringKey);