{"id":2472,"date":"2024-11-10T17:59:02","date_gmt":"2024-11-10T09:59:02","guid":{"rendered":"https:\/\/fwq.ai\/blog\/2472\/"},"modified":"2024-11-10T17:59:02","modified_gmt":"2024-11-10T09:59:02","slug":"nodejs-%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e5%ba%93%e4%bc%98%e5%8c%96%e6%8a%80%e6%9c%af","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/2472\/","title":{"rendered":"Nodejs \u4e2d\u7684\u6570\u636e\u5e93\u4f18\u5316\u6280\u672f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173077219878400.jpg\" class=\"aligncenter\" title=\"Nodejs \u4e2d\u7684\u6570\u636e\u5e93\u4f18\u5316\u6280\u672f\u63d2\u56fe\" alt=\"Nodejs \u4e2d\u7684\u6570\u636e\u5e93\u4f18\u5316\u6280\u672f\u63d2\u56fe\" \/><\/p>\n<p>\u4f18\u5316\u6570\u636e\u5e93\u4ea4\u4e92\u5bf9\u4e8e\u6784\u5efa\u9ad8\u6027\u80fd node.js \u5e94\u7528\u7a0b\u5e8f\u81f3\u5173\u91cd\u8981\uff0c\u5c24\u5176\u662f\u968f\u7740\u6570\u636e\u548c\u7528\u6237\u91cf\u7684\u589e\u52a0\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u6570\u636e\u5e93\u4f18\u5316\u7684\u6700\u4f73\u5b9e\u8df5\uff0c\u91cd\u70b9\u5173\u6ce8  \u548c postgresql\u3002\u4e3b\u9898\u5305\u62ec\u7d22\u5f15\u3001\u67e5\u8be2\u4f18\u5316\u3001\u6570\u636e\u7ed3\u6784\u548c\u7f13\u5b58\u6280\u672f\u3002<\/p>\n<h2> \u6570\u636e\u5e93\u4f18\u5316\u7b80\u4ecb <\/h2>\n<p>\u9ad8\u6548\u7684\u6570\u636e\u5e93\u7ba1\u7406\u53ef\u63d0\u9ad8\u6027\u80fd\u3001\u51cf\u5c11\u5ef6\u8fdf\u5e76\u964d\u4f4e\u6210\u672c\u3002\u65e0\u8bba\u60a8\u4f7f\u7528\u7684\u662f mongodb \u8fd9\u6837\u7684 nosql \u6570\u636e\u5e93\u8fd8\u662f postgresql \u8fd9\u6837\u7684\u5173\u7cfb\u6570\u636e\u5e93\uff0c\u5b9e\u65bd\u4f18\u5316\u7b56\u7565\u90fd\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002<\/p>\n<h2> \u7d22\u5f15\u4ee5\u52a0\u5feb\u67e5\u8be2\u901f\u5ea6 <\/h2>\n<p>\u7d22\u5f15\u901a\u8fc7\u51cf\u5c11\u6570\u636e\u5e93\u5f15\u64ce\u9700\u8981\u5904\u7406\u7684\u6570\u636e\u91cf\u6765\u63d0\u9ad8\u67e5\u8be2\u6027\u80fd\u3002\u4f46\u662f\uff0c\u521b\u5efa\u592a\u591a\u7d22\u5f15\u4f1a\u51cf\u6162\u5199\u5165\u64cd\u4f5c\uff0c\u56e0\u6b64\u6709\u7b56\u7565\u5730\u5efa\u7acb\u7d22\u5f15\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<h3> mongodb \u4e2d\u7684\u7d22\u5f15 <\/h3>\n<p>mongodb \u4e2d\u7684\u7d22\u5f15\u53ef\u4ee5\u4f7f\u7528 createindex \u65b9\u6cd5\u521b\u5efa\u3002\u8fd9\u662f\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<pre>\/\/ creating an index on the \"name\" field in mongodb\nconst { mongoclient } = require('mongodb');\nconst uri = \"mongodb:\/\/localhost:27017\";\nconst client = new mongoclient(uri);\n\nasync function createindex() {\n    try {\n        await client.connect();\n        const database = client.db(\"mydatabase\");\n        const collection = database.collection(\"users\");\n\n        \/\/ creating an index\n        const result = await collection.createindex({ name: 1 });\n        console.log(\"index created:\", result);\n    } finally {\n        await client.close();\n    }\n}\n\ncreateindex();\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h3> postgresql \u4e2d\u7684\u7d22\u5f15 <\/h3>\n<p>\u5728 postgresql \u4e2d\uff0c\u7d22\u5f15\u662f\u4f7f\u7528 create index \u8bed\u53e5\u521b\u5efa\u7684\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>create index idx_name on users (name);\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5f53\u591a\u4e2a\u5b57\u6bb5\u7ecf\u5e38\u4e00\u8d77\u67e5\u8be2\u65f6\uff0c\u4f7f\u7528<strong>\u590d\u5408\u7d22\u5f15<\/strong>\uff1a<\/p>\n<pre>create index idx_user_details on users (name, age);\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2> \u4f18\u5316\u67e5\u8be2 <\/h2>\n<p>\u9ad8\u6548\u7684\u67e5\u8be2\u53ef\u9632\u6b62\u8fc7\u591a\u7684 cpu \u548c\u5185\u5b58\u4f7f\u7528\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u4f18\u5316\u67e5\u8be2\u7684\u6280\u5de7\uff1a<\/p>\n<h3> mongodb \u67e5\u8be2\u4f18\u5316 <\/h3>\n<ol>\n<li> <strong>\u6295\u5f71<\/strong>\uff1a\u4ec5\u68c0\u7d22\u60a8\u9700\u8981\u7684\u5b57\u6bb5\uff1a <\/li>\n<\/ol>\n<pre>   \/\/ retrieve only name and age fields\n   const users = await collection.find({}, { projection: { name: 1, age: 1 } }).toarray();\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li> <strong>\u805a\u5408\u6846\u67b6<\/strong>\uff1a\u4f7f\u7528\u805a\u5408\u7ba1\u9053\u5728\u5355\u4e2a\u67e5\u8be2\u4e2d\u8fc7\u6ee4\u548c\u8f6c\u6362\u6570\u636e\u3002 <\/li>\n<\/ol>\n<pre>   const results = await collection.aggregate([\n       { $match: { status: \"active\" } },\n       { $group: { _id: \"$department\", count: { $sum: 1 } } }\n   ]).toarray();\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h3> postgresql \u67e5\u8be2\u4f18\u5316 <\/h3>\n<ol>\n<li> <strong>\u4f7f\u7528 limit<\/strong>\uff1a\u4f7f\u7528 limit \u51cf\u5c11\u7ed3\u679c\u96c6\u5927\u5c0f\uff0c\u4ee5\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u6570\u636e\u52a0\u8f7d\u3002 <\/li>\n<\/ol>\n<pre>   select name, age from users where status = 'active' limit 10;\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li> <strong>\u907f\u514d select * \u67e5\u8be2<\/strong>\uff1a\u4ec5\u83b7\u53d6\u5fc5\u8981\u7684\u5217\uff1a <\/li>\n<\/ol>\n<pre>   select name, age from users where status = 'active';\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li> <strong>\u4f7f\u7528 expln<\/strong>\uff1a\u68c0\u67e5\u67e5\u8be2\u6027\u80fd\u5e76\u8bc6\u522b\u4f18\u5316\u673a\u4f1a\u3002 <\/li>\n<\/ol>\n<pre>   explain select name from users where age &gt; 30;\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2> \u6784\u5efa\u6570\u636e\u4ee5\u63d0\u9ad8\u6548\u7387 <\/h2>\n<p>\u6570\u636e\u7ed3\u6784\u7684\u9009\u62e9\u4f1a\u5f71\u54cd\u5b58\u50a8\u548c\u68c0\u7d22\u6548\u7387\u3002 <\/p>\n<h3> mongodb \u67b6\u6784\u8bbe\u8ba1 <\/h3>\n<ol>\n<li> <strong>\u5d4c\u5165\u6570\u636e<\/strong>\u7528\u4e8e\u4e00\u5bf9\u4e00\u548c\u4e00\u5bf9\u51e0\u4e2a\u5173\u7cfb\u3002 <\/li>\n<li> <strong>\u591a\u5bf9\u591a\u5173\u7cfb\u7684\u53c2\u8003\u6570\u636e<\/strong>\u4ee5\u907f\u514d\u6570\u636e\u91cd\u590d\u3002<\/li>\n<\/ol>\n<p>\u793a\u4f8b\uff1a<\/p>\n<ul>\n<li>\u5d4c\u5165\u5f0f\uff1a <\/li>\n<\/ul>\n<pre>  {\n    \"name\": \"john doe\",\n    \"address\": { \"city\": \"new york\", \"zip\": \"10001\" }\n  }\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u53c2\u8003\uff1a <\/li>\n<\/ul>\n<pre>  {\n    \"user_id\": \"123\",\n    \"order_id\": \"456\"\n  }\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h3> postgresql \u8868\u8bbe\u8ba1 <\/h3>\n<ol>\n<li> <strong>\u6807\u51c6\u5316<\/strong>\uff1a\u5c06\u6570\u636e\u62c6\u5206\u5230\u76f8\u5173\u8868\u4e2d\u4ee5\u51cf\u5c11\u5197\u4f59\u3002<\/li>\n<li> <strong>\u53cd\u89c4\u8303\u5316<\/strong>\uff1a\u5bf9\u4e8e\u8bfb\u53d6\u91cf\u5927\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5bf9\u8868\u8fdb\u884c\u53cd\u89c4\u8303\u5316\u4ee5\u63d0\u9ad8\u67e5\u8be2\u901f\u5ea6\u3002<\/li>\n<\/ol>\n<h2> \u7f13\u5b58\u4ee5\u51cf\u5c11\u5ef6\u8fdf <\/h2>\n<p>\u7f13\u5b58\u5c06\u7ecf\u5e38\u8bbf\u95ee\u7684\u6570\u636e\u5b58\u50a8\u5728\u5185\u5b58\u4e2d\uff0c\u4ee5\u4fbf\u66f4\u5feb\u5730\u8bbf\u95ee\u3002\u8fd9\u5bf9\u4e8e\u4e0d\u7ecf\u5e38\u66f4\u6539\u7684\u67e5\u8be2\u7279\u522b\u6709\u7528\u3002<\/p>\n<h3> \u4f7f\u7528  \u5b9e\u73b0\u7f13\u5b58 <\/h3>\n<p>redis \u662f\u4e00\u79cd\u5185\u5b58\u6570\u636e\u5b58\u50a8\uff0c\u901a\u5e38\u4e0e node.js \u4e00\u8d77\u7528\u4e8e\u7f13\u5b58\u3002<\/p>\n<ol>\n<li>\u5b89\u88c5redis\uff1a <\/li>\n<\/ol>\n<pre>   npm install redis\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li>\u5728 node.js \u4e2d\u8bbe\u7f6e\u7f13\u5b58\uff1a <\/li>\n<\/ol>\n<pre>   const redis = require(\"redis\");\n   const client = redis.createclient();\n\n   \/\/ connect to redis\n   client.connect();\n\n   \/\/ caching function\n   async function getuser(userid) {\n       const cacheddata = await client.get(userid);\n       if (cacheddata) {\n           return json.parse(cacheddata);\n       } else {\n           const userdata = await getuserfromdb(userid); \/\/ hypothetical db function\n           await client.set(userid, json.stringify(userdata), 'ex', 3600); \/\/ cache for 1 hour\n           return userdata;\n       }\n   }\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li>\u6570\u636e\u66f4\u65b0\u65f6\u6e05\u9664\u7f13\u5b58\u4ee5\u4fdd\u6301\u4e00\u81f4\u6027\uff1a <\/li>\n<\/ol>\n<pre>   async function updateuser(userid, newdata) {\n       await client.del(userid);\n       \/\/ update the database...\n   }\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2> \u4f7f\u7528\u6570\u636e\u5e93\u5206\u7247\u6269\u5c55 node.js \u5e94\u7528\u7a0b\u5e8f <\/h2>\n<p>\u5bf9\u4e8e\u9ad8\u6d41\u91cf\u5e94\u7528\u7a0b\u5e8f\uff0c\u8bf7\u8003\u8651<strong>\u6570\u636e\u5e93\u5206\u7247<\/strong>\uff0c\u5b83\u5c06\u6570\u636e\u5206\u5e03\u5728\u591a\u4e2a\u670d\u52a1\u5668\u4e0a\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002<\/p>\n<h3> mongodb \u5206\u7247 <\/h3>\n<p>mongodb \u5141\u8bb8\u901a\u8fc7\u5206\u7247\u8fdb\u884c\u6c34\u5e73\u6269\u5c55\u3002\u9009\u62e9\u5206\u7247\u952e\u6765\u8de8\u670d\u52a1\u5668\u5206\u5272\u6570\u636e\u3002<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa\u5206\u7247\u952e<\/strong>\uff1a\u9009\u62e9\u4e00\u4e2a\u5747\u5300\u5206\u5e03\u6570\u636e\u7684\u5206\u7247\u952e\uff08\u4f8b\u5982userid\uff09\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u542f\u7528\u5206\u7247<\/strong>:<\/p>\n<\/li>\n<\/ol>\n<pre>   db.adminCommand({ enableSharding: \"myDatabase\" });\n   db.adminCommand({ shardCollection: \"myDatabase.users\", key: { userId: \"hashed\" } });\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h2> \u5b9e\u9645\u7528\u4f8b\uff1a\u4f18\u5316\u7535\u5b50\u5546\u52a1\u5e94\u7528\u7a0b\u5e8f <\/h2>\n<p>\u8003\u8651\u4e00\u4e2a\u7528\u6237\u7fa4\u5feb\u901f\u589e\u957f\u7684\u7535\u5b50\u5546\u52a1\u5e94\u7528\u7a0b\u5e8f\u3002\u4f18\u5316\u6570\u636e\u5e93\u4ea4\u4e92\u53ef\u4ee5\u5927\u5927\u51cf\u5c11\u5ef6\u8fdf\u5e76\u63d0\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u5e94\u7528\u6211\u4eec\u4ecb\u7ecd\u7684\u6280\u672f\uff1a<\/p>\n<ol>\n<li> <strong>\u7d22\u5f15<\/strong>\uff1a\u7d22\u5f15\u7ecf\u5e38\u641c\u7d22\u7684\u5b57\u6bb5\uff0c\u4f8b\u5982product_id\u3001category\u548cuser_id\u3002<\/li>\n<li> <strong>\u67e5\u8be2\u4f18\u5316<\/strong>\uff1a\u6700\u5c0f\u5316\u67e5\u8be2\u4e2d\u4e0d\u5fc5\u8981\u7684\u5217\uff0c\u5c24\u5176\u662f\u5bf9\u4e8e\u5927\u578b\u6570\u636e\u96c6\u3002<\/li>\n<li> <strong>\u6570\u636e\u7ed3\u6784<\/strong>\uff1a\u5d4c\u5165\u4ea7\u54c1\u8bc4\u8bba\u6570\u636e\uff0c\u4f46\u5d4c\u5165\u7528\u6237\u8ba2\u5355\u53c2\u8003\u6570\u636e\uff0c\u4ee5\u9632\u6b62\u91cd\u590d\u3002<\/li>\n<li> <strong>\u7f13\u5b58<\/strong>\uff1a\u4f7f\u7528redis\u7f13\u5b58\u4ea7\u54c1\u8be6\u7ec6\u4fe1\u606f\u548c\u7528\u6237\u8d2d\u7269\u8f66\uff0c\u5b9a\u671f\u5237\u65b0\u6570\u636e\u3002<\/li>\n<li> <strong>\u5206\u7247<\/strong>\uff1a\u6309 user_id \u5bf9\u6570\u636e\u5e93\u8fdb\u884c\u5206\u7247\uff0c\u4ee5\u968f\u7740\u7528\u6237\u7fa4\u7684\u589e\u957f\u5e73\u8861\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u8d1f\u8f7d\u3002<\/li>\n<\/ol>\n<h2> \u7ed3\u8bba <\/h2>\n<p>\u6570\u636e\u5e93\u4f18\u5316\u5bf9\u4e8e\u9ad8\u6548\u4e14\u53ef\u6269\u5c55\u7684 node.js \u5e94\u7528\u7a0b\u5e8f\u81f3\u5173\u91cd\u8981\u3002\u7d22\u5f15\u3001\u67e5\u8be2\u4f18\u5316\u3001\u6570\u636e\u7ed3\u6784\u5316\u3001\u7f13\u5b58\u548c\u5206\u7247\u7b49\u6280\u672f\u53ef\u4ee5\u663e\u7740\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\u3002\u901a\u8fc7\u5b9e\u65bd\u8fd9\u4e9b\u6700\u4f73\u5b9e\u8df5\uff0c\u60a8\u7684 node.js \u5e94\u7528\u7a0b\u5e8f\u5c06\u6709\u6548\u5904\u7406\u589e\u52a0\u7684\u6570\u636e\u91cf\u548c\u7528\u6237\u6d41\u91cf\u3002<\/p>\n<p>\u5728\u4e0b\u4e00\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u8ba8\u8bba node.js \u5e94\u7528\u7a0b\u5e8f\u7684\u65e5\u5fd7\u8bb0\u5f55\u548c\u76d1\u63a7\u6700\u4f73\u5b9e\u8df5\uff0c\u91cd\u70b9\u5173\u6ce8 winston\u3001elasticsearch \u548c prometheus \u7b49\u5de5\u5177\uff0c\u4ee5\u786e\u4fdd\u5e73\u7a33\u8fd0\u884c\u548c\u5feb\u901f\u6545\u969c\u6392\u9664\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fNodejs \u4e2d\u7684\u6570\u636e\u5e93\u4f18\u5316\u6280\u672f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f18\u5316\u6570\u636e\u5e93\u4ea4\u4e92\u5bf9\u4e8e\u6784\u5efa\u9ad8\u6027\u80fd node.js \u5e94\u7528\u7a0b\u5e8f\u81f3\u5173\u91cd\u8981\uff0c\u5c24\u5176\u662f\u968f\u7740\u6570\u636e\u548c\u7528\u6237\u91cf\u7684\u589e\u52a0\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u6570\u636e\u5e93\u4f18\u5316\u7684\u6700\u4f73\u5b9e\u8df5\uff0c\u91cd\u70b9\u5173\u6ce8 \u548c postgresql\u3002\u4e3b\u9898\u5305\u62ec\u7d22\u5f15\u3001\u67e5\u8be2\u4f18\u5316\u3001\u6570\u636e\u7ed3\u6784\u548c\u7f13\u5b58\u6280\u672f\u3002 \u6570\u636e\u5e93\u4f18\u5316\u7b80\u4ecb \u9ad8\u6548\u7684\u6570\u636e\u5e93\u7ba1\u7406\u53ef\u63d0\u9ad8\u6027\u80fd\u3001\u51cf\u5c11\u5ef6\u8fdf\u5e76\u964d\u4f4e\u6210\u672c\u3002\u65e0\u8bba\u60a8\u4f7f\u7528\u7684\u662f mongodb \u8fd9\u6837\u7684 nosql \u6570\u636e\u5e93\u8fd8\u662f postgresql \u8fd9\u6837\u7684\u5173\u7cfb\u6570\u636e\u5e93\uff0c\u5b9e\u65bd\u4f18\u5316\u7b56\u7565\u90fd\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002 \u7d22\u5f15\u4ee5\u52a0\u5feb\u67e5\u8be2\u901f\u5ea6 \u7d22\u5f15\u901a\u8fc7\u51cf\u5c11\u6570\u636e\u5e93\u5f15\u64ce\u9700\u8981\u5904\u7406\u7684\u6570\u636e\u91cf\u6765\u63d0\u9ad8\u67e5\u8be2\u6027\u80fd\u3002\u4f46\u662f\uff0c\u521b\u5efa\u592a\u591a\u7d22\u5f15\u4f1a\u51cf\u6162\u5199\u5165\u64cd\u4f5c\uff0c\u56e0\u6b64\u6709\u7b56\u7565\u5730\u5efa\u7acb\u7d22\u5f15\u81f3\u5173\u91cd\u8981\u3002 mongodb \u4e2d\u7684\u7d22\u5f15 mongodb \u4e2d\u7684\u7d22\u5f15\u53ef\u4ee5\u4f7f\u7528 createindex \u65b9\u6cd5\u521b\u5efa\u3002\u8fd9\u662f\u4e00\u4e2a\u4f8b\u5b50\uff1a \/\/ creating an index on the &#8220;name&#8221; field in mongodb const { mongoclient } = require(&#8216;mongodb&#8217;); const uri = &#8220;mongodb:\/\/localhost:27017&#8221;; const client = new mongoclient(uri); async function createindex() { try { await client.connect(); const [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-2472","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=2472"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2472\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=2472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=2472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=2472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}