-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP - Server, Mongoose -> Prisma. Hono integration. #483
base: andrew_testing
Are you sure you want to change the base?
Conversation
…11 embedded documents and wrote them into prisma/schema.prisma in 1.92s *** WARNING *** The following fields point to nested objects without any data: - Model: "users", field: "packs" - Model: "users", field: "trips" Could not determine the types for the following fields: - Model: "itemcategories", field: "location" - Model: "items", field: "location" - Model: "packs", field: "coordinates" - Model: "templates", field: "geojsonField" - Model: "templates", field: "location" - Model: "users", field: "code" - Model: "users", field: "location" Could not determine the types for the following fields: - Composite type: "UsersPacks", field: "geometry" - Composite type: "UsersTrips", field: "geometry" The following fields had data stored in multiple types. Either use Json or normalize data to the wanted type: - Model: "items", field: "category", original data type: "Json" - Model: "items", field: "packs", original data type: "Json" - Model: "items", field: "weight", original data type: "Json" - Model: "packs", field: "owners", original data type: "Json" - Model: "trips", field: "geojson", original data type: "Json" The following fields had data stored in multiple types. Either use Json or normalize data to the wanted type: - Composite type: "GeojsonsGeometry", field: "coordinates", chosen data type: "Json" - Composite type: "PacksScores", field: "essentialItemsScore", chosen data type: "Json" - Composite type: "PacksScores", field: "redundancyAndVersatilityScore", chosen data type: "Json" Run prisma generate to generate Prisma Client.
Mongoose-to-prisma-clone
…lds-to-prisma-models
…o-prisma-models Replace Mongoose virtuals, statics and object methods
506fa45
to
42b4b35
Compare
What is left: |
b84cc68
to
3968255
Compare
Below are some queries that I'm running into issues with on my side, I think mostly due to response size/length. We should be more explicit about the data we need (based on frontend). List is in progress still. We have strict limitations using the accelerate/data proxy from prisma.
|
|
Note, need to add values from env to env.dev.vars in wrangler toml for development environment. Be sure not to commit these to repo. |
Fix/prisma build cf errors
updating prisma
DATABASE_URL will need to be updated to a prisma connection pooling URL for something like prisma accelerate to work properly on edge Edit: it is now the MONGODB_URI |
Your Render PR Server URL is https://packrat-dev-pr-483.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-clrrvl146foc73c8vbe0. |
A deploy for your Render PR Server at https://packrat-dev-pr-483.onrender.com just failed. View details on your dashboard at https://dashboard.render.com/web/srv-clrrvl146foc73c8vbe0. |
|
||
datasource db { | ||
provider = "mongodb" | ||
url = env("MONDODB_URI") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
url = env("MONDODB_URI") | |
url = env("MONGODB_URI") |
id: userId, | ||
}, | ||
include: { | ||
favorites: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
favorites: true, | |
favoriteDocuments: true, |
@@ -0,0 +1,29 @@ | |||
const findOrCreateMany = async (ids, nodes) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to fix error : this
might be undefined
const findOrCreateMany = async (ids, nodes) => { | |
async function findOrCreateMany(ids, nodes) { |
A deploy for your Render PR Server at https://packrat-dev-pr-483.onrender.com just failed. View details on your dashboard at https://dashboard.render.com/web/srv-clrrvl146foc73c8vbe0. |
A deploy for your Render PR Server at https://packrat-dev-pr-483.onrender.com just failed. View details on your dashboard at https://dashboard.render.com/web/srv-clrrvl146foc73c8vbe0. |
2 similar comments
A deploy for your Render PR Server at https://packrat-dev-pr-483.onrender.com just failed. View details on your dashboard at https://dashboard.render.com/web/srv-clrrvl146foc73c8vbe0. |
A deploy for your Render PR Server at https://packrat-dev-pr-483.onrender.com just failed. View details on your dashboard at https://dashboard.render.com/web/srv-clrrvl146foc73c8vbe0. |
No description provided.