Theo-s-Meta-Capstone / IndoorMaps

0 stars 0 forks source link

Feat: connect prisma/Postgres with apollo server #1

Closed dumax315 closed 5 days ago

dumax315 commented 6 days ago

Started Wednesday 1:00

Resources: https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/introduction https://www.apollographql.com/docs/graphos/explorer/sandbox/

notes: Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? Try Prisma Accelerate: https://pris.ly/cli/accelerate-init

dumax315 commented 6 days ago

https://github.com/prisma/prisma-examples/blob/latest/typescript/graphql-typegraphql/src/index.ts This example was used as refernece

dumax315 commented 6 days ago

https://typegraphql.com/docs/installation.html Was used to create the graphql schema

dumax315 commented 5 days ago

Finished adding backend tests, see pull requests: https://github.com/Theo-s-Meta-Capstone/IndoorMaps/pull/8. One note was that I had to convert the prisma ids (that were numbers) into string id for with a table name attached that way the Relay cashe wouldn't get mad about there being 2 objects with the same id (despite the objects being of different types)