With this query:
const result = await Topic.find( { 'categorieName': { $regex: /^news/i } } )
I can return the categories with news name, the problem is that it is not always news, so I wanted to put a variable in place
How do I do this?...
I'm trying to make an insertion in MongoDB by passing some arguments in JSON:
{
"name": "TESTE",
"category": "B",
"service": "Novo processo",
"description": "Novo Teste",
"active": false,
"classmodels": [
{"...
I'm trying to read parameters sent via post, but express only shows in empty console.log objects.
This is the code
import * as jsonServer from 'json-server'
import {Express} from "express";
import * as fs from 'fs'
import * as https from 'h...
I've set up a site where the user logs in by entering any Login and Password and storing it in LocalStorage.
Which part of the site he tries to access always redirects to the Login page if he has not logged in at least 1 time. (Example: if it tr...
Whenever I send a message using the nodemailer I have how to get the messageId example:
messageId: [email protected]
Is it possible to make an appointment to check the status of this email? such as whether...
In a unit test for a module using Mocha and Chai , I need to check if an error is returned if the parameter format is invalid.
The function of the module in question returns a Promise .
The example below is fictitious bu...
I have two modals on the same page, one to change and another to remove information from the bank.
The code for the first modal is this:
<!-- Modal Editar -->
<div class="modal fade" id="myModal">
<div class="modal-dial...
I'm doing a project of a simple music player using ElectronJS.
For this I'm using a library that plays MP3 files (play-sound), how can I call this function inside my HTML? Do I need to create another file just for sound reproduction or can I p...
I'm looking for a way to use global variable in typescript with NodeJS. For example in js I can do:
//init.js
global.foo = "foo";
//teste.js
var foo = global.foo;
Is there any way I can do this in typescript?
PS: I know it's not good pr...
Hello, I'm creating a project in Angular2 + Webpack and in this project I use the @angular/material as the design library. So that I can create my own icons using SVG, I'm extending the component MatIcon as it says in the documentation...