ooth icon indicating copy to clipboard operation
ooth copied to clipboard

Prisma integration

Open EarthlingDavey opened this issue 5 years ago • 2 comments

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.

EarthlingDavey avatar Mar 21 '19 09:03 EarthlingDavey

Kindly update about the completeness of the branch. I'd love to use Postgres DB with Ooth . Thanks in advance.

thiyaga24 avatar Apr 08 '19 04:04 thiyaga24

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?

  1. 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.
  2. 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.
  3. 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!

EarthlingDavey avatar Apr 08 '19 07:04 EarthlingDavey