skip to Main Content

Put requests using node.js and mongodb

I'm learning how to make requests using node.js. My problem is that it generates these errors when making the requests (Cannot GET /Citaup/654fe24584f7a3d27e0a4c61) Failed to load resource: the server responded with a status of 404 (Not Found) Registro.js:146 Error: Error…

VIEW QUESTION

Mongodb – pymongo count_doucment() not working with datetime

Hi i am trying to query data from mongodb using python = 3.8, django=4.2.2, arrow==1.2.3 pymongo = 3.13.0, mongodb is serverless. this is my filter object filter['created_at']={ '$gte': arrow.now(settings.LOCAL_TIME_ZONE).shift(hours=-24).span('day')[0].to(settings.TIME_ZONE).datetime, '$lt': arrow.now(settings.LOCAL_TIME_ZONE).span('day')[1].to(settings.TIME_ZONE).datetime, } when i print filter['created_at'] i get output as…

VIEW QUESTION

Html – Not connecting to mongo db

var express = require('express'); var router = express.Router(); const MongoClient = require('mongodb').MongoClient; /* GET home page. */ router.get('/', function (req, res, next) { res.render('index', { title: 'Express' }); }); router.post("/signup", function (req, res) { console.log("first_name: " + req.body.first_name) console.log("last_name: "…

VIEW QUESTION
Back To Top
Search