code: function _getRef (refOrQuery) {
    if (typeof refOrQuery.ref === 'function') {
      refOrQuery = refOrQuery.ref()
    } else if (typeof refOrQuery.ref === 'object') {
      refOrQuery = refOrQuery.ref
    }
  
    return refOrQuery
  }
docs: Returns the original reference of a Wilddog reference or query across SDK versions.
  
  @param {WilddogReference|WilddogQuery} refOrQuery
  @return {WilddogReference}