In&Out
In&Out
PPrisma
Created by In&Out on 5/5/2024 in #help-and-questions
A bug with prisma
am i doing it right?
10 replies
PPrisma
Created by In&Out on 5/5/2024 in #help-and-questions
A bug with prisma
10 replies
PPrisma
Created by In&Out on 5/5/2024 in #help-and-questions
A bug with prisma
tried it again, still nothing
10 replies
PPrisma
Created by In&Out on 5/5/2024 in #help-and-questions
A bug with prisma
lol
10 replies
PPrisma
Created by In&Out on 5/5/2024 in #help-and-questions
A bug with prisma
i switched off from my pc to laptop 4 times
10 replies
PPrisma
Created by In&Out on 5/5/2024 in #help-and-questions
A bug with prisma
I am trying to make a new card, that has relation with a List model, but whenever I do, i get that error
10 replies
PPrisma
Created by In&Out on 5/2/2024 in #help-and-questions
Connecting prisma with mongodb issue
My issue was I didn't make a container, fixed it, thank you
11 replies
PPrisma
Created by In&Out on 5/2/2024 in #help-and-questions
Connecting prisma with mongodb issue
How do I fix this?
11 replies
PPrisma
Created by In&Out on 5/2/2024 in #help-and-questions
Connecting prisma with mongodb issue
Raw query failed. Code: `unknown`. Message: `Kind: Command failed: Error code 8000 (AtlasError): empty database name not allowed
Raw query failed. Code: `unknown`. Message: `Kind: Command failed: Error code 8000 (AtlasError): empty database name not allowed
11 replies
PPrisma
Created by In&Out on 5/2/2024 in #help-and-questions
Connecting prisma with mongodb issue
This is the error i get
11 replies
PPrisma
Created by In&Out on 5/2/2024 in #help-and-questions
Connecting prisma with mongodb issue
DATABASE_URL="mongodb+srv://name:[email protected]/"
DATABASE_URL="mongodb+srv://name:[email protected]/"
11 replies
PPrisma
Created by In&Out on 5/2/2024 in #help-and-questions
Connecting prisma with mongodb issue
"use server";

import { PrismaClient } from "@prisma/client";
const prisma = new PrismaClient();

async function Page() {
await prisma.user.create({
data: {
name: "Rich",
posts: {
create: {
title: "My first post",
body: "Lots of really interesting stuff",
slug: "my-first-post",
},
},
},
});
const allUsers = await prisma.user.findMany({
include: {
posts: true,
},
});
console.dir(allUsers, { depth: null });

return <div>Page</div>;
}

export default Page;
"use server";

import { PrismaClient } from "@prisma/client";
const prisma = new PrismaClient();

async function Page() {
await prisma.user.create({
data: {
name: "Rich",
posts: {
create: {
title: "My first post",
body: "Lots of really interesting stuff",
slug: "my-first-post",
},
},
},
});
const allUsers = await prisma.user.findMany({
include: {
posts: true,
},
});
console.dir(allUsers, { depth: null });

return <div>Page</div>;
}

export default Page;
11 replies