Commit Graph

11 Commits

Author SHA1 Message Date
c5f5e770e2
Fix word name collision, add two new user-related features
All checks were successful
continuous-integration/drone/push Build is passing
This commit changes the primary key of words to a serial number. That
way, two words with the same normalized value will not collide with
one another.

It also adds two new tables in the database:
- Users following languages
- Users learning words

The former can represent two stages of learning a word:
- Either the user is currently learning it
- Or they consider they know it and don’t need to work on it anymore

These two new tables now have their API query available through the
GraphQL API.

This commit also fixes the issue of word-related tables and types not
being dropped when resetting the database.
2023-01-18 10:26:45 +01:00
1eb31f8e1e
Convert format macros to new format 2023-01-17 01:52:31 +01:00
a36fd740af
Even more error handling
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-17 00:58:01 +01:00
3220f5c005
Add user, language, word lookup
Also add some error management
2023-01-17 00:40:53 +01:00
d0a40b7ed8
Almost no unwraps !
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-16 00:48:09 +01:00
dcaa920c51
Better error handling 2023-01-16 00:22:58 +01:00
425e00acc1
Manually add users to database, better handling of errors in API
All checks were successful
continuous-integration/drone/push Build is passing
Also manually remove users from database, and list them only as admin
2023-01-16 00:09:50 +01:00
8c62727ec9
Add ADMIN_KEY variable to context 2023-01-15 22:51:22 +01:00
e522f358e5
Change mutation to quickly test if a user is connected or not 2023-01-15 22:50:48 +01:00
05ca82c4e1
Move context to new file, add to context if user is authentified
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 18:10:51 +01:00
b20fb5f079
Fragment graphql module, add Appwrite vars to context 2023-01-15 17:36:32 +01:00