Posts by Romulo Lessa • 53 points
6 posts
-
0
votes1
answer16
viewsA: graphql and Apollo server error in start Apollo server
I solved the error as follows async function startApolloServer() { const app = express(); const server = new ApolloServer({ typeDefs, resolvers, }); await server.start(); server.applyMiddleware({…
-
0
votes1
answer16
viewsQ: graphql and Apollo server error in start Apollo server
I have a problem with graphql and Apollo server and do not know why this error persists and do not know how to solve. Even putting 'await server.start()' still giving error SyntaxError: await is…
-
0
votes1
answer41
viewsQ: Creating Crud in Nodejs Error in the post
const users ={ nome: String, idade: Number, saldo: Number, aposta: ()=>{return dados} }; const dados = { gama: String, investimento: Number, lucro: Number, totalRetorno: (investimento, lucro)…
-
-2
votes1
answer32
viewsQ: array only displays the first length using foreach
I am wanting to display an array within a list but when I run the function only displays the first number of the array let lista = document.getElementById("lista"); par.forEach(()=>{ let item =…
javascriptasked Romulo Lessa 53 -
1
votes2
answers26
viewsQ: Nan error in object array
var armazenamento = []; armazenamento.push({nome: nomeproduto, valor: + preco}) for(i in armazenamento){ total =+ armazenamento[valor: i] i++ } console.log(total) troco = PagoCliente - total I…
javascriptasked Romulo Lessa 53 -
3
votes2
answers92
viewsQ: Text appears fast
The page is running all right, but when I click on the menu it displays the text very fast and then deletes. Could someone give me a light why the text disappears after the click?…