ooth
ooth copied to clipboard
Prisma integration
Attempt at following the guide outlined in this issue: https://github.com/nmaro/ooth/issues/73 . This code is buggy at the moment - login doesn't work - I believe it is because I am getting _id and id mixed up somewhere. Also, the typescript is messy because I'm new to it.
Kindly update about the completeness of the branch. I'd love to use Postgres DB with Ooth . Thanks in advance.
Hi @thiyaga24 , thanks for taking an interest in the work. The branch includes a package called ooth-prisma. This package passes all of the tests from ooth-mongo, plus some more.
What's left to do?
- Get the example project up and running, at the moment login is failing. I think this is related to me being confused between _id which is used in ooth-mongo and other ooth packages.
- This may or may not require changes to the ooth-prisma package. The package may be ok but my client integration may be causing the issue.
- Make sure that duplicate data is not being stored in the database. E.g. if someone logs in and out multiple times, we need to check their data is being updated correctly and not being added to. Add some more thorough tests on ooth-prisma package to check this.
It would be great to see this package completed. I has had at least a few full days work on in from me, but I just don't have time now to complete it.
If you were to look at the code some pointers would be.
- Familiarise yourself with how ooth-mongo stores data and take a quick look at the ooth-prisma data mode to see how I've worked around Prisma not being no-SQL.
- Use the GraphQL playground to help with debugging.
- Have the ooth-prisma tests running if you intend on changing the ooth-prisma package.
Cheers & good luck!