function unconnectedFixtureData() {
  const { entities } = fixtureData;

  // removes "tables" from something like: {"1": {name:"foo", tables: [1,2,3]}}
  const stripKeysFromValues = (entity, keys) =>
    _.mapObject(entity, o => _.omit(o, keys));

  const databases = stripKeysFromValues(entities.databases, ["tables"]);
  const { schemas } = entities;
  const tables = stripKeysFromValues(entities.tables, [
    "fields",
    "metrics",
    "segments",
  ]);
  return { databases, schemas, tables };
}
// removes associated ids from entities so we can load only some of them
removes associated ids from entities so we can load only some of them
removes associated ids from entities so we can load only some of them
function unconnectedFixtureData() {
  const { entities } = fixtureData;
  const stripKeysFromValues = (entity, keys) =>
    _.mapObject(entity, o => _.omit(o, keys));
  const databases = stripKeysFromValues(entities.databases, ["tables"]);
  const { schemas } = entities;
  const tables = stripKeysFromValues(entities.tables, [
    "fields",
    "metrics",
    "segments",
  ]);
  return { databases, schemas, tables };
}
function unconnectedFixtureData ( ) { const { entities } = fixtureData ; const stripKeysFromValues = ( entity , keys ) => _ . mapObject ( entity , o => _ . omit ( o , keys ) ) ; const databases = stripKeysFromValues ( entities . databases , [ "tables" ] ) ; const { schemas } = entities ; const tables = stripKeysFromValues ( entities . tables , [ "fields" , "metrics" , "segments" , ] ) ; return { databases , schemas , tables } ; }
removes associated ids from entities so we can load only some of them
removes associated ids from entities so we can load only some of them
// removes "tables" from something like: {"1": {name:"foo", tables: [1,2,3]}}