Last active
December 29, 2023 05:42
-
-
Save bitdom8/3257876ef86f1769d10573815a5f7340 to your computer and use it in GitHub Desktop.
MongoDB send variables to Database in javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"userid": { | |
"$oid": "613dfcca7e7e2014c12dfeef" | |
}, | |
"attach": "[\"https://image.yourwebsite.com/be/images/{dateyear}/{datemonth}/finance_analysis.webp\"]", | |
"title": "{link}, {DEĞ %}", | |
"description": "{link}, {DEĞ %} {1-AY DÜŞÜK}\n\n{OSİLATÖRLERİN RATİNG'İ}{ADX}\n\n{MÜTHİS OSİLATÖR}{ATR}{CCI20}\n\n{MACD SEVİYESİ} {MOM}{RSI14}\n\n{STOKASTİK K} {STOKASTİK D}\n\n{AROON ÜST} {AROON ALT} {BOĞAAYIGÜCÜ}\n\n{SAR}{BHO10}{HAREKETLİ ORTALAMALAR RATİNG'İ}", | |
"price": 0, | |
"color": "[]", | |
"trademark": "", | |
"language": "tr", | |
"category": "[\"{link}\",\"analiz\"]", | |
"productstate": "Published", | |
"createdat": { | |
"$date": "{date}" | |
}}, | |
or | |
let mongo = { | |
userid: { | |
$oid: '613dfcca7e7e2014c12dfeef' | |
}, | |
attach: '["https://image.bitfinicon.com/be/images/2022/1/finance_analysis.webp"]', | |
title: '{Sembol}, {Açıklama}', | |
description: | |
'{mongosentences}', | |
price: 0, | |
color: '[]', | |
trademark: '', | |
language: 'tr', | |
category: '["{Sembol}","analiz"]', | |
productstate: 'Published', | |
createdat: { | |
$date: '{date}' | |
} | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment