Skip to content

Instantly share code, notes, and snippets.

View iamnabeelrahman's full-sized avatar
🎯
Focusing

Nabeel Rahman iamnabeelrahman

🎯
Focusing
View GitHub Profile
const express = require("express");
const mongoose = require("mongoose");
const app = express();
app.use(express.json());
// fetch all tasks
//delete task
// write logic for first finding task and then updating in update api
const express = require("express")
const mongoose = require("mongoose")
const app = express()
mongoose.connect(`{oaiehflzkct/backendsession`)
.then(() => console.log("Mongodb Conected"))
.catch((error) => console.log("failed to connect Mngodb"));
const userSchema = new mongoose.Schema({