Created
June 7, 2019 17:44
-
-
Save sarahsweat/e9cb903f781eaa647cfe95526950da43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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