Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Adds small clarifications to schema.md for complete beginners #1251

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/source/tutorial/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ type Launch {
isBooked: Boolean!
}
```
(make sure to not add any semicolons since gql is its own language)

The `Launch` object type has a collection of **fields**, and each field has a type of its own. A field's type can be either an object type or a **scalar type**. A scalar type is a primitive (like `ID`, `String`, `Boolean`, `Int` or `Float`) that resolves to a single value. In addition to GraphQL's built-in scalar types, you can define [custom scalar types](https://www.apollographql.com/docs/apollo-server/schema/scalars-enums/).

Expand Down Expand Up @@ -186,7 +187,7 @@ type TripUpdateResponse {
}
```

This response type contains a `success` status, a corresponding `message`, and an array of any `Launch`es that were modified by the mutation. It's good practice for a mutation to return whatever objects it modifies so the requesting client can update its cache and UI without needing to make a followup query.
This response type contains a `success` status, a corresponding `message`, and an array of any `Launch`es that were modified by the mutation. **It's good practice for a mutation to return whatever objects it modifies so the requesting client can update its cache and UI without needing to make a followup query**.

Our example app's schema is now complete!

Expand Down