joey
joey
TTCTheo's Typesafe Cult
Created by joey on 4/23/2024 in #questions
next MongoDB api route returns []
got it to work with this export async function GET() { await connect(); const tools = await ToolData.find({}); return NextResponse.json(tools); }
8 replies
TTCTheo's Typesafe Cult
Created by joey on 4/23/2024 in #questions
next MongoDB api route returns []
i get the same result even when I do find({}) it should return all data in the data table but I just get the same result
8 replies
TTCTheo's Typesafe Cult
Created by joey on 4/23/2024 in #questions
next MongoDB api route returns []
No description
8 replies
TTCTheo's Typesafe Cult
Created by joey on 4/23/2024 in #questions
next MongoDB api route returns []
No description
8 replies