From c47e567e54fa16c7d8280f1c0a330e768a8b08cb Mon Sep 17 00:00:00 2001 From: Daniel <38475290+Kaimura@users.noreply.github.com> Date: Tue, 10 Aug 2021 17:19:44 +0200 Subject: [PATCH] Add sequelizer information to prevent confusion I know this is the part I failed 2 years ago because I wanted to know and understand every piece of code not just apollo... and not being able to understand where these functions came from made me quit. So I want to prevent this happening to other very fresh programmers. --- docs/source/tutorial/data-source.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/tutorial/data-source.md b/docs/source/tutorial/data-source.md index db0d3e5b0..c8b67e810 100644 --- a/docs/source/tutorial/data-source.md +++ b/docs/source/tutorial/data-source.md @@ -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