import 'package:flutter/material.dart' ; import 'package:get/get.dart' ; import 'package:luminary_fashion_customer_app/utils/constants/colors.dart' ; import '../controllers/booking_controller.dart' ; class BookingView extends…
Anku
Continue Reading
function data(){ return 'Hi Ankit'; return 'Hello Murli' // not a executable code. } var observable = Rx.Observable.create((observer: any) =>{ observer.next('Hi Ankit'); observer.next( 'Hello Murli'); }) obser…
Anku
Continue Reading
db.getCollection ( "orderhistories" ) .aggregate ([ { $match :{ orderId : 9335 }}, { $project :{ "workshop" :{ "addOnService" :{ "serviceId" : 1 , "product" : 1 …
Anku
Continue Reading
GROUP BY & SELECT PARTICULAR FIELDS - MONGO db.getCollection("fake_gps_user_records").aggregate([ {$group:{_id:"$userId",userName:{$first:"$userName"}}}, ])
Haritha
Continue Reading
db . getCollection ( "orderhistories" ). aggregate ( [ { $match : { $and : [{ orderId : 9291 },] } }, { $project : { workshop : { vechil…
Anku
Continue Reading
const problems = await this.orderHistoryModel.find({ orderId }, { 'id': 1, 'family.children.toys': 1, '_id': 0 })
Anku
Continue Reading
// // The key length is dependent on the algorithm. // // In this case for aes256, it is 32 bytes. const textToEncrypt = '1008' ; const iv = randomBytes ( 16 ); const password = 'Password used to generate key' ; //…
Anku
Continue Reading
const r = `workshop.inclusiveService`; const serv = { [r]: { serviceId: 70 } }; console.log(serv);
Anku
Continue Reading
db.getCollection('orderhistories').aggregate([ {$match: {$and: [{ 'orderId': 9051 },]}}, { $unwind: '$workshop.inclusiveService' }, {$unwind: "$workshop.inclusiveService.serviceId"}, {$replaceRoot: {newRoot: "$workshop.…
Anku
Continue Reading
server { root /var/www/foldername/public/; index index.html index.htm index.nginx-debian.html index.php; server_name domain/subdoamin www.example.com; location / { try_files $uri $uri/ /index.php?$query_stri…
Anku
Continue Reading
server { listen 80; server_name domain/subdomain; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_pass http://localhost: port /api/; proxy_http_version 1.1; …
Anku
Continue Reading
server { listen 80; server_name domainname or subdomain; location / { root /var/www/vanilla/dist/; index index.html index.htm; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade';…
Anku
Continue Reading
1. Using JSON.parse(JSON.stringify(object)); var obj = { a : 1 , b : { c : 2 } } var newObj = JSON . parse ( JSON . stringify (obj)); obj. b . c = 20 ; console . log (obj); // { a: 1, b: { c: 20 } } console . log (newObj); // { a: 1, b: { c: …
Anku
Continue Reading