Menu Item by Program

The menuitemsByProgram query retrieves the information of items depending on the information a given program and restaurant.

Required Arguments

Argument

Type

Description

restaurantId

ID

programId

ID

Available Fields

The following fields are displayed in the response:

Field Name

Type

Description

restaurantName

String

Restaurant name where the menu is found

createdAt

DateTime

Date and time when the menu was created

updatedAt

DateTime

Date and time when the menu was updated

menu

String

Name of the menu

sectionName

String

Section name

Refer to this documentation to see the complete list of all the available fields.

Examples

The following examples retrieve the information of menu items classified by a given program and a restaurant.

GraphQL example

{
  menuitemsByProgram(restaurantId: "66b2bf83-2d30-4d8a-8ad0-79ff4137f9f4" 
                     programId: "49611857-af97-4ff9-9f59-8e763960e081") {

    restaurantName
    sectionName
    description
    menu
    name
    minPrice
    maxPrice
    language
    courses
  }
}

cURL example

curl -XPOST 'https://production.suggestic.com/graphql' \
  -H 'Authorization: Bearer <User-JWT>' \
  -H 'Content-Type: application/json' \
--data-raw '{"query": "{menuitemsByProgram(restaurantId:\"66b2bf83-2d30-4d8a-8ad0-79ff4137f9f4==\" programId:\"49611857-af97-4ff9-9f59-8e763960e081\"){restaurantName sectionName description menu name minPrice maxPrice language course}}"}'

Last updated