Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I followed this tutorial https://www.digitalocean.com/community/tutorials/how-to-build-a-graphql-api-with-prisma-and-deploy-to-digitalocean-s-app-platform#:~:text=Resolver functions receive,in GraphQL Resolvers, was able to complete it with no issues. After completing it, I tried changing the database to the Supabase PostgresQL, since then I am having issues. I changed the env variable to the database url from the supabase and then I ran npx prisma migrate to sync the prisma schema. When I try the digital ocean api link I am not able to perform any queries. This is the error message I get - Please advise!
{
"errors": [
{
"message": "\nInvalid `prisma.post.create()` invocation:\n\n\n error: Error validating datasource `db`: the URL must start with the protocol `postgresql://` or `postgres://`.\n --> schema.prisma:6\n | \n 5 | provider = \"postgresql\"\n 6 | url = env(\"DATABASE_URL\")\n | \n\nValidation Error Count: 1",
"locations": [
{
"line": 11,
"column": 3
}
],
"path": [
"createDraft"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"exception": {
"clientVersion": "2.23.0",
"stacktrace": [
"Error: ",
"Invalid `prisma.post.create()` invocation:",
"",
"",
" error: Error validating datasource `db`: the URL must start with the protocol `postgresql://` or `postgres://`.",
" --> schema.prisma:6",
" | ",
" 5 | provider = \"postgresql\"",
" 6 | url = env(\"DATABASE_URL\")",
" | ",
"",
"Validation Error Count: 1",
" at cb (/workspace/node_modules/@prisma/client/runtime/index.js:35107:17)",
" at runMicrotasks (<anonymous>)",
" at processTicksAndRejections (internal/process/task_queues.js:97:5)"
]
}
}
}
],
"data": null
}
James Wood
Shane Corn
Faizan Younas Tanooli
clea-peixoto
StrugglingDeveloper
Hamza kholti
Charley Kiser
31294f7ccf774ac7b3508a6438b989
Matthew Narrell
hello