src/store/modules/schemas.js
/**
   * Fetch all versions of the given subject.
   * @param {String} subject Subject name
   */
Fetch all versions of the given subject.
@param {String} subject Subject name
Fetch all versions of the given subject . @param { String } subject Subject name
async fetchAllVersions ({dispatch, state}, subject) {
    if (!state.subjects[subject]) {
      throw new Error(`the given subject: ${subject} is not found`)
    }
    for (let version in state.subjects[subject]) {
      await dispatch('fetchSchemaByVersion', {subject, version})
    }
  }
async fetchAllVersions ( { dispatch , state } , subject ) { if ( ! state . subjects [ subject ] ) { throw new Error ( ` ${ subject } ` ) } for ( let version in state . subjects [ subject ] ) { await dispatch ( 'fetchSchemaByVersion' , { subject , version } ) } }
Fetch all versions of the given subject.
Fetch all versions of the given subject .