My Common Foods Search
Use the myCommonFoods
to return the user's stored common foods. These common foods are the ones created by a user by using the createMyCommonFoods
mutation.
Use also an optional ID
argument to search b64id foods.
Available Argument
Name
Type
Description
Id
String
Unique Food ID. No required argument.
Available Fields
The following fields are part of the response.
Pagination
The myCommonFoods
query supports the use of pagination. The following fields can be used
pageInfo{
hasNextPage
hasPreviousPage
startCursor
endCursor
}
Examples
GraphQL Example
{
myCommonFoods {
edges {
node {
id
name
nutrients{
name
type
unit
amount
}
}
}
}
}
Last updated
Was this helpful?