Wujingquan | 搞搞震

MongoDB – aggregate query

document https://www.mongodb.com/docs/manual/aggregation/ Operators for aggregation queries https://www.mongodb.com/docs/manual/reference/operator/aggregation/ Classification of Aggregate Query Operators arithmetic expression operator array expression operator boolean expression operator comparison expression operator conditional expression operator … Common Mongo aggregation operations are compared with mysql queries SQL Aggregate where $match group by $group having $match select $project order by $project limit $limit sum() $sum […]

MongoDB – aggregate query Read More »

MikroORM and MongoDB

Use aggregation query Use EntityRepository from the @mikro-orm/mongodb package instead of the @mikro-orm/core package. // import { EntityRepository } from ‘@mikro-orm/core’; import { EntityRepository } from ‘@mikro-orm/mongodb’ ; class User { constructor ( @InjectRepository (User) private readonly userRepository: EntityRepository<User>, ) {} @Get () find ( ) { return this . userRepository . aggregate ([]); }}

MikroORM and MongoDB Read More »

Small skin panel (phpStudy)

9000 port occupation problem Open the resource monitor , find the process name: xp.cn_cgi.exe , and you will see the occupied port. If you have 4 versions of PHP installed on your machine, then there will be 4 corresponding xp.cn_cgi.exe processes and Occupies 4 ports: increase from 9000. Executing netstat -ano | findstr 9000 will

Small skin panel (phpStudy) Read More »

Puppeteer – use of Docker version

Puppeteer’s official documentation on Docker https://pptr.dev/guides/docker Push the official Puppeteer Docker image to Alibaba Cloud There is no official image maintained by Puppeteer on hub.docker.com, because the official image is hosted on Github. So we need to pull down the image, and then push it to the mirror service in the country to increase the

Puppeteer – use of Docker version Read More »

Puppeteer

document https://pptr.dev/ Common Error Handling UnhandledPromiseRejectionWarning: Error: net::ERR_CONNECTION_TIMED_OUT (node:40940) UnhandledPromiseRejectionWarning: Error: net::ERR_CONNECTION_TIMED_OUT at https://developer.chrome.com/ Network problem, make sure the target address can be accessed. This article is transferred from https://www.wujingquan.com/posts/cab35e09.html This site is only for collection, and the copyright belongs to the original author.

Puppeteer Read More »

Nuxt 3

Nuxt3 + vant https://vant-contrib.gitee.io/vant/#/zh-CN/quickstart#zai-kuang-jia-zhong-shi-yong https://github.com/vant-ui/vant-demo/tree/master/vant/nuxt3 This article is transferred from https://www.wujingquan.com/posts/6285a84b.html This site is only for collection, and the copyright belongs to the original author.

Nuxt 3 Read More »

The Cesium map server cannot connect to the downgrade solution

const viewer = new Cesium.Viewer()const imageryLayers = viewer.imageryLayers;const provider = new Cesium.SuperMapImageryProvider({ url: ”,})Cesium.when(provider.readyPromise,(res) => { console.log(‘provider.readyPromise success’, res) this.$emit(‘mapServerConnect’, true)}, (err) => { console.error(‘provider.readyPromise error’, err) this.$emit(‘mapServerConnect’, false)}) This article is transferred from https://www.wujingquan.com/posts/6012cd61.html This site is only for collection, and the copyright belongs to the original author.

The Cesium map server cannot connect to the downgrade solution Read More »