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

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