Skip to content

Instantly share code, notes, and snippets.

@sarahsweat
Created June 7, 2019 17:44
Show Gist options
  • Save sarahsweat/e9cb903f781eaa647cfe95526950da43 to your computer and use it in GitHub Desktop.
Save sarahsweat/e9cb903f781eaa647cfe95526950da43 to your computer and use it in GitHub Desktop.
export const GET_RECIPES = gql`
query Search($searchInput: String!) {
search(q: $searchInput, brand: FOOD, types: RECIPE, limit: 50) {
count
pageInfo {
endCursor
hasNextPage
}
results {
results {
...on Recipe {
id
title
directions
ingredients
bylines {
id
title
imageUrl
}
image {
id
title
url
}
}
}
}
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment