code: function onSuccess(result) {
              const datastoreEntity = result ? result[0] : null;
  
              if (!datastoreEntity) {
                  if (_this.gstore.config.errorOnEntityNotFound) {
                      const error = new Error('Entity not found');
                      error.code = errorCodes.ERR_ENTITY_NOT_FOUND;
                      throw error;
                  }
  
                  return null;
              }
  
              _this.entityData = datastoreEntity;
              return _this;
          }
docs: ------------------------