fetchHiddenIngredients

fetch list of possible hidden ingredients for a given food name.

  /**
   * fetch list of possible hidden ingredients for a given food name.
   * @param foodName - query for foodName.
   * @returns A `Promise` resolving to a `PassioFetchAdvisorInfoResult`.
   */
  fetchHiddenIngredients(
    foodName: string
  ): Promise<PassioFetchAdvisorInfoResult>
 try {
          // Fetch food results from the PassioSDK based on the query
          const result = await PassioSDK.fetchHiddenIngredients("apple")
          console.warn(result)
        } catch (error) {
        }

Last updated