packages/insomnia-app/app/ui/redux/modules/index.js
async function getAllDocs() {
  // Restore docs in parent->child->grandchild order
  const allDocs = [
    ...(await models.settings.all()),
    ...(await models.workspace.all()),
    ...(await models.workspaceMeta.all()),
    ...(await models.environment.all()),
    ...(await models.cookieJar.all()),
    ...(await models.requestGroup.all()),
    ...(await models.requestGroupMeta.all()),
    ...(await models.request.all()),
    ...(await models.requestMeta.all()),
    ...(await models.response.all()),
    ...(await models.oAuth2Token.all()),
    ...(await models.clientCertificate.all()),
  ];

  return allDocs;
}
async function getAllDocs() {
  // Restore docs in parent->child->grandchild order
  const allDocs = [
    ...(await models.settings.all()),
    ...(await models.workspace.all()),
    ...(await models.workspaceMeta.all()),
    ...(await models.environment.all()),
    ...(await models.cookieJar.all()),
    ...(await models.requestGroup.all()),
    ...(await models.requestGroupMeta.all()),
    ...(await models.request.all()),
    ...(await models.requestMeta.all()),
    ...(await models.response.all()),
    ...(await models.oAuth2Token.all()),
    ...(await models.clientCertificate.all()),
  ];

  return allDocs;
}
async function getAllDocs ( ) { // Restore docs in parent->child->grandchild order const allDocs = [ ... ( await models . settings . all ( ) ) , ... ( await models . workspace . all ( ) ) , ... ( await models . workspaceMeta . all ( ) ) , ... ( await models . environment . all ( ) ) , ... ( await models . cookieJar . all ( ) ) , ... ( await models . requestGroup . all ( ) ) , ... ( await models . requestGroupMeta . all ( ) ) , ... ( await models . request . all ( ) ) , ... ( await models . requestMeta . all ( ) ) , ... ( await models . response . all ( ) ) , ... ( await models . oAuth2Token . all ( ) ) , ... ( await models . clientCertificate . all ( ) ) , ] ; return allDocs ; }
Async function to get all docs concurrently
Async function to get all docs concurrently