Shopping List by Aisle

A shopping list in Suggestic is a collection of ingredients originating from recipes previously added to the list using the addToShoppingList mutation.

Use the shoppingListAggregate query to obtain the aggregate list of ingredients for all the recipes added, grouped by aisle.

Available Fields

Field

Type

Note

ingredient

String

Item in the shopping list

quantity

String

Item (ingredient) quantity

aisleName

String

Name of the aisle in which the ingredient (item) can be found

unit

String

Unit of measurement. Possible Values: cup, spoon, ounces, teaspoon, tablespoon.

grams

Float

Recipe measurement. Use this value as a reference only.

isDone

Bool

True if the item is checked

Example

GraphQL Example

query {
  shoppingListAggregate {
    edges {
      node {
        databaseId
        ingredient
        aisleName
        quantity
        unit
        grams
        isDone
      }
    }
  }
}

cURL Example

curl -XPOST 'https://production.suggestic.com/graphql' \
  -H 'Authorization: Bearer <User-JWT>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"query":"{  shoppingListAggregate  { edges {node {databaseId ingredient aisleName quantity unit grams  isDone   }  }  }}"}'

UI/UX example

In the same way, we have code examples, this is an implementation example in which see results of the API execution in the Suggestic App.

Last updated