Beginning with GraphQL, your first Query
Please step into my Blog for a better reading experience!Links to this article Here
What is GraphQL?
The official interpretation of GraphQL is a query language for the API.That may not be very understandable.
For example, a traditional restFulAPI for requesting user data:
This API always returns three attributes: id,name,avatar.
What if we do ...
Added by adamgram on Thu, 22 Aug 2019 05:09:58 +0300
path and fs related modules
path module
_u dirname: Get the absolute path directory of the current file
_u filename: Get the path to the current file
ctx.body = {
dirName: __dirname,
fileName: __filename
}
//{"dirName":"D:\\WEB\\koa_proj","fileName":"D:\\WEB\\koa_proj\\app.js"}
path.join(p1, p2): for splicing paths
//"D:\\WEB\\koa_proj\\file.txt"
path.jo ...
Added by Quilmes on Sun, 04 Aug 2019 06:07:42 +0300
The Principle of Nodejs Modularization
I. Preface
The application of node is composed of modules. Node follows the module specification of commonjs, which is used to isolate the scope of each module and make each module execute in its own namespace.
The main contents of commonjs are as follows:
Modules must export external variables or interfaces through module.exports, and import t ...
Added by jonshutt on Wed, 24 Jul 2019 07:10:27 +0300
Rapid development of WeChat applets: from registered accounts to applet shelves
Write before
Since the WeChat applet function was released, I have been following the trend of the applet, but limited to busy school, there is always not much time to learn.As a sophomore, I gradually learned Vuejs and was attracted by its concise design. Then I looked at the development documentation of the applet and found it so similar?Mayb ...
Added by joopeon on Tue, 23 Jul 2019 02:03:53 +0300
The first day of webpack learning practice
By Ylise
1. Install webpack
Reference documents:
1.Chinese Document Installation Paper of webpack
2.Lodash Chinese Documents
1. Create folder mkdir webpack-demo and enter the created folder
mkdir webpack-demo && cd webpack-demo
2. Initialize a new package.json file and use NPM init-y to skip the query phase. Next, use domestic mirro ...
Added by tj71587 on Sat, 20 Jul 2019 10:19:36 +0300
How to create an http2 node App
More Front End Technologies and Knowledge Points, Search Subscription Number JS Bacteria Subscription
All data is transported binary (sliced differently, HTTP2 was previously sent as a string)
Requests sent may be sent out of order
Efficient features such as header information compression and Server Push
Channel multiplexing (only one TCP li ...
Added by Zero20two on Wed, 17 Jul 2019 19:48:07 +0300
MongoDB Original Life Order CURD
Learning excerpt from MongoDB Authoritative Guide
Insert
Use insert method
This action document automatically generates a'_id'key
>db.foo.insert({"bar" : "baz"})
Batch insert, using batchInsert function
>db.foo.batchInsert([{ "_id" : 0 } , { "_id" : 1 } , { "_id" : 2 }])
The maximum message length currently acceptable to mongodb is 48MB, ...
Added by Skepsis on Mon, 15 Jul 2019 20:06:20 +0300
express-session in Node.js Development
What is session?
Session is a session saved on the server side. The typical application scenario of session is that after a user logs on to a website, he puts his login information into session, and inquires the corresponding login information in each subsequent request to ensure that the user is legitimate. Classic scenes such as shopping cart ...
Added by utahcon on Sat, 29 Jun 2019 22:37:00 +0300
Large File Partial Upload Based on Node.js
When we do file upload, if the file is too large, it may cause the request to time out.Therefore, when you encounter the need to upload large files, you need to upload files in pieces.At the same time, if the file is too large, how to continue the breakpoint when the network is not good?You also need to record the current upload file and make a ...
Added by rashpal on Tue, 18 Jun 2019 19:20:41 +0300
Handles teach you to build SSR(vue/vue-cli + express)
Recent simple research on SSR, SSR has a simple understanding, mainly for single-page applications, Nuxt is a good framework for SSR.There have also been some research, simple use, or very good feeling.But you still want to know if you don't depend on the framework and if you're working with SSRs, take a note.
What is SSR
Render the Vue compone ...
Added by pckidcomplainer on Wed, 12 Jun 2019 20:30:43 +0300