You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/fragments/start/getting-started/vue/data-model.mdx
+83-85Lines changed: 83 additions & 85 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ Select the default values which are highlighted below:
62
62
63
63
The CLI should open this GraphQL schema in your text editor.
64
64
65
-
__amplify/backend/api/myapi/schema.graphql__
65
+
**amplify/backend/api/myapi/schema.graphql**
66
66
67
67
```graphql
68
68
typeTodo@model {
@@ -72,13 +72,13 @@ type Todo @model {
72
72
}
73
73
```
74
74
75
-
Theschema generated is for a Todo app. You'll notice a directive on the `Todo` type of `@model`. This directive is part of the [GraphQL transform](/cli/graphql/data-modeling) library of Amplify.
75
+
Theschema generated is for a Todo app. You'll notice a directive on the `Todo` type of `@model`. This directive is part of the [GraphQL transform](/cli/graphql/data-modeling) library of Amplify.
76
76
77
77
The GraphQL Transform Library provides custom directives you can use in your schema that allow you to do things like define data models, set up authentication and authorization rules, configure serverless functions as resolvers, and more.
78
78
79
79
A type decorated with the `@model` directive will scaffold out the database table for the type (Todo table), the schema for CRUD (create, read, update, delete) and list operations, and the GraphQL resolvers needed to make everything work together.
80
80
81
-
From the command line, press __enter__ to accept the schema and continue to the next steps.
81
+
From the command line, press **enter** to accept the schema and continue to the next steps.
82
82
83
83
## Deploy your GraphQL API
84
84
@@ -128,7 +128,7 @@ This will open your Amplify app project in the AWS service console. Choose the *
128
128
129
129
## Connect frontend to API
130
130
131
-
Next, open __App.vue__.
131
+
Next, open **App.vue**.
132
132
133
133
### Writing data with GraphQL mutations
134
134
@@ -138,38 +138,38 @@ To create a new todo in the database, use the `API.graphql()` operation with the
0 commit comments