Skip to content

Commit e9d1ce9

Browse files
authored
Update README.md
1 parent d18293a commit e9d1ce9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

quickstart-with-apollo/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,14 @@ Next, you need to define your data model inside the newly created `types.graphql
5151
Replace the current contents in `types.graphql` with the following type definition (you can delete the predefined `User` type):
5252

5353
```graphql
54-
type Post {
55-
id: ID! @isUnique
56-
createdAt: DateTime!
57-
updatedAt: DateTime!
54+
type Post @model {
55+
# Required system field
56+
id: ID! @isUnique # read-only (managed by Graphcool)
57+
58+
# Optional system fields (remove if not needed)
59+
createdAt: DateTime! # read-only (managed by Graphcool)
60+
updatedAt: DateTime! # read-only (managed by Graphcool)
61+
5862
description: String!
5963
imageUrl: String!
6064
}
@@ -86,6 +90,7 @@ const networkInterface = createNetworkInterface({ uri: '__SIMPLE_API_ENDPOINT__'
8690
### 4. Install dependencies & run locally
8791

8892
```sh
93+
cd ..
8994
yarn install
9095
yarn start # open http://localhost:3000 in your browser
9196
```

0 commit comments

Comments
 (0)