getThang = (options = {}) => {
  const data = {}

  if (!options.slug) {
    throw new Error('You must pass a \'slug\' property into getThang function')
  }

  if (options.project && Array.isArray(options.project)) {
    _.assign(data, {
      project: options.project.join(',')
    })
  }

  return fetchJson(`/db/thang.type/${options.slug}`, { data })
}
Retrieves a thangType from the database.
@param {getThangOptions} options - Support projection field with a list of string attributes.
@async
@returns {Promise<Object>} - the ThangType object