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

Add sequelizer information to prevent confusion #1252

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
1 change: 1 addition & 0 deletions docs/source/tutorial/data-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ Let's go over some of the methods in `src/datasources/user.js` that we use to fe
- `cancelTrip({ launchId })`: Takes an object with a `launchId` and cancels that launch for the logged-in user.
- `getLaunchIdsByUser()`: Returns all booked trips for the logged-in user.
- `isBookedOnLaunch({ launchId })`: Determines whether the logged-in user has booked a trip on a particular launch.
Don't worry too much about the functions that are used inside these methods such as `findOrCreate` or `findAll` - If you really want to know more about these querying functions you can look up their usage in the [Sequelize package](https://sequelize.org/master/manual/model-querying-basics.html). Sequelizer itself is initialized in the store and passed to the user api which we will do next.

## Add data sources to Apollo Server

Expand Down