code: function getQueryArgs (ids) {
      // build query args
      var queryArgs = {
          allow: this.query.args.allow,
          session: this.query.session,
          where: {},
      }
      // set ids for query
      queryArgs.where[this.idColumn] = ids
      // if query is for list of ids set all flag
      if (Array.isArray(ids)) {
          queryArgs.all = true
      }
      // otherwise set limit 1
      else {
          queryArgs.limit = 1
      }
      // if query is for original id then set current flag
      if (this.isOriginalId) {
          queryArgs.current = true
      }
      // if custom query args are set then merge
      if (typeof this.queryArgs === 'object') {
          _.merge(queryArgs, this.queryArgs)
      }
  
      return queryArgs
  }
docs: @function getQueryArgs
  
  build query args
  
  @returns {Promise}