Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Dabit committed Dec 2, 2018
1 parent 4a198cc commit 91230b0
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,18 +470,8 @@ To do so, we need to define the query, execute the query, store the data in our
// imports from Amplify library
import { API, graphqlOperation } from 'aws-amplify'

// define query
const ListPets = `
query {
listPets {
items {
id
name
description
}
}
}
`
// import query
import { listPets as ListPets } from './graphql/queries'

// define some state to hold the data returned from the API
state = {
Expand Down

0 comments on commit 91230b0

Please sign in to comment.