Posts by Pedro Henrique • 83 points
9 posts
-
0
votes0
answers881
viewsQ: Typeerror: app.use() requires a middleware Function
Index const express = require("express"); const bodyParser = require("body-parser"); const router = require("./config/routes"); const app = express(); app.use(bodyParser.json());…
-
0
votes1
answer140
viewsQ: Link data in Mongodb
Model const AvaliacaoShema = new Schema({ responsavel: { type: String, required: true }, time: { type: Schema.Types.ObjectId, ref: 'Time', required: true }, pergunta: [{ type: Schema.Types.ObjectId,…
-
2
votes1
answer106
viewsQ: Adding multiple IDS within an array?
const [pergunta, setAddPergunta] = useState([]) async function pegarId(_id) {setAddPergunta(_id) console.log(_id)} <tbody> {getPerg.map((pe, i) => ( <tr key={i}> <th…
-
0
votes1
answer110
viewsQ: find no req.body using populate
Controller async index(req, res) { const avali = await Avaliacao.find(req.body) .populate('Time').exec((time, err) => { console.log(`Para retorna tudo ${time}`) }) return res.send(avali) }, Model…
-
2
votes2
answers2901
viewsQ: How to take the value of select
How do I get the value of select, gave a onChange, but the value is not being returned as expected. <select className="form-control" value={area} onChange={e => setAddArea(e.target.value)}…
reactasked Pedro Henrique 83 -
1
votes1
answer500
viewsQ: Crud ID with javascript
import api from '../../services/api' export default function Area() { const [ area, setArea ] = useState([]) useEffect(() => { async function loadArea() { const response = await api.get('/area')…
-
-3
votes4
answers11105
viewsA: Error in android SDK "License for package Android SDK Platform 28 not accepted."
You have to accept the permits sdkmanager --licenses, this is the command, accept the licenses that will work. yes | sdkmanager --licenses If it doesn’t work and you’re on a like-Unix (Linux or mac)…
-
0
votes0
answers524
viewsQ: Command failed: gradlew.bat app:installDebug -Preactnativedevserverport=8081
Good morning, I’m trying to do the deploy of the application in the nutcase, but you’re making this mistake, I’ve tried change the door, but it didn’t work, someone can help me? Failed to install…
-
0
votes2
answers837
viewsA: Add an array inside another already created Javascript
// Try to use the Concat var array1 = ['1','2','3'] var array2 = ['4','5','6'] var array3 = ['7','8','9'] var arrayTudo = array1.Concat(array2, array3) console.log(array)