apollographql / fullstack-tutorial

🚀 The Apollo platform tutorial app

Home Page:https://www.apollographql.com/docs/tutorial/introduction.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Login exception INTERNAL_SERVER_ERROR

LeonardoGentile opened this issue · comments

When performing the first login I receive this error:

"SQLITE_ERROR: no such table: users",

The sqlite db is there and I can read from it with an sql tool. I've also verified that the table users is available.

The location of this file is in server/store.sqlite but somehow when I run my server it gets copied to the root folder (whic part of the logic does this, maybe sequelize?)

I can read from src/utils that storage: './store.sqlite', so I guess the db should be located inside the server/src directory, but even copying it manually inside src doesn't fix the problem.

Maybe I've missed a step somehow?