Preparing search index...

    Function getDataset

    • Loads the seed dataset appropriate for the current environment and language.

      Resolves the dataset type via getDatasetType, then returns the matching collection. On any load error, falls back to the test dataset and logs the failure.

      Parameters

      • language: "en" | "fr"

        The active app language; used to select the correct production dataset. Ignored for test and performance types.

      Returns DatasetCollection

      The resolved DatasetCollection.

      const { ingredients, tags, recipes } = getDataset('fr');
      await db.seedDatabase(ingredients, tags, recipes);