Created
June 17, 2017 21:19
-
-
Save BrentonCozby/47e83ad6b6881a4c49b07bc39e616c6e 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
const addMutation = gql` | |
mutation addPost($title: String!, $description: String!, $image: String!, $ingredients: [String!]!, $instructions: [String!]!) { | |
createRecipe(title: $title, description: $description, image: $image, ingredients: $ingredients, instructions: $instructions) { | |
id | |
title | |
description | |
image | |
ingredients | |
instructions | |
} | |
} | |
`; | |
const PageWithMutation = graphql(addMutation, { name: "addPost" })( | |
CreateRecipe | |
); | |
export default PageWithMutation; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment