schema.graphql
type Todo @model {
id: ID!
dateTime: AWSDateTime
date: AWSDate
time: AWSTime
}
-
amplify init
,amplify add api
and use the above schema,amplify update api
and enable for datastore,amplify push
-
amplify codegen models
-
pod install --repo-update
and open appxed .
-
run app and click on Save, update the queryId to Query directly from AppSync
-
amplify console api
to check the data from the AppSync's Queries tab