{"id":50679,"date":"2018-07-17T00:00:00","date_gmt":"2018-07-17T07:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/"},"modified":"2025-11-14T07:53:44","modified_gmt":"2025-11-14T15:53:44","slug":"getting-started-with-the-griddb-nodejs-client","status":"publish","type":"post","link":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/","title":{"rendered":"GridDB Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046"},"content":{"rendered":"<h2 id=\"intro\">\u306f\u3058\u3081\u306b<\/h2>\n<p>GridDB\u306f\u8fd1\u5e74\u975e\u5e38\u306b\u4eba\u6c17\u306e\u3042\u308b<a href=\"https:\/\/nodejs.org\/en\/\">node.js<\/a>\u3068\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306f<a href=\"https:\/\/griddb.net\/en\/blog\/getting-started-with-griddbs-golang-client\/\">Go\u8a00\u8a9e\u30b3\u30cd\u30af\u30bf<\/a>\u3068\u540c\u69d8\u306b\u3001<a href=\"http:\/\/www.swig.org\/\">SWIG \u30e9\u30a4\u30d6\u30e9\u30ea<\/a>\u3067\u69cb\u7bc9\u3055\u308c\u3066\u3044\u307e\u3059\u3002 node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001CentOS 6\u304a\u3088\u30737\u3067\u52d5\u4f5c\u3059\u308bnode.js\u30d0\u30fc\u30b8\u30e7\u30f36\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Node.js\u304c2009\u5e74\u306e\u6700\u521d\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u304b\u3089\u3001JavaScript\u306f10\u5e74\u306e\u9593<a href=\"https:\/\/insights.stackoverflow.com\/survey\/2018\/#most-popular-technologies\">\u4e16\u754c\u3067\u6700\u3082\u4f7f\u308f\u308c\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e<\/a>\u306e\u5ea7\u306b\u3064\u3044\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u8981\u56e0\u306e\u4e00\u3064\u306fNode.js \u3068\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002\u958b\u767a\u5206\u91ce\u3067\u306f\u4f9d\u7136\u3068\u3057\u3066node.js\u306e\u91cd\u8981\u6027\u304c\u9ad8\u3044\u305f\u3081\u3001\u3053\u306e\u30b3\u30cd\u30af\u30bf\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306f\u304b\u306d\u3066\u304b\u3089GridDB\u30c1\u30fc\u30e0\u306e\u6700\u512a\u5148\u4e8b\u9805\u3068\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001GridDB\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u8a2d\u5b9a\u3001\u30c6\u30b9\u30c8\u307e\u3067\u306e\u624b\u9806\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<style>\nul {<br \/>\n    padding-left: 36px;<br \/>\n}<\/p>\n<p>.toc_container {<br \/>\n    background: blue none repeat scroll 0 0 !important;<br \/>\n    border: 1px solid #aaa !important;<br \/>\n    display: table !important;<br \/>\n    font-size: 95%;<br \/>\n    margin-bottom: 1em;<br \/>\n    padding: 20px;<br \/>\n    width: auto;<br \/>\n}<\/p>\n<p>.toc_title {<br \/>\n    font-weight: 700;<br \/>\n    text-align: center;<br \/>\n}<\/p>\n<p>.toc_container li, .toc_container ul, .toc_container ul li, .toc_container ol li{<br \/>\n    list-style: outside none none !important;<br \/>\n}<br \/>\n<\/style>\n<div id=\"toc-block\" style=\"background: #f9f9f9 none repeat scroll 0 0;border: 1px solid #aaa; padding: 20px; width: auto; display: table;margin-bottom: 1em;\">\n<h5 id=\"toc\">Table of Contents<\/h5>\n<div class=\"toc_container\">\n<ul id=\"toc-list\" style=\"list-style-type: none !important;\">\n<li>1 &nbsp;&nbsp;&nbsp;<a href=\"#setup-node\">Node.js Client Setup and Installation<\/a><\/li>\n<li style=\"list-style: outside none none !important;\">\n<div class=\"inner-list\">\n<ul style=\"list-style-type: none !important; padding-left: 9px;\">\n<li>1.1 <a href=\"#possible-build-issues\">Possible Build Issues<\/a><\/li>\n<\/ul>\n<\/div>\n<\/li>\n<li>2 &nbsp;&nbsp;&nbsp;<a href=\"#connecting-to-griddb\">Connecting to GridDB with Node.js<\/a><\/li>\n<li>3 &nbsp;&nbsp;&nbsp;<a href=\"#schemas-containers\">Creating Row Schemas with JavaScript<\/a><\/li>\n<li>4 &nbsp;&nbsp;&nbsp;<a href=\"#queries\">TQL Queries and Data Management<\/a><\/li>\n<li style=\"list-style: outside none none !important;\">\n<div class=\"inner-list\">\n<ul style=\"list-style-type: none !important; padding-left: 9px;\"><\/ul>\n<\/div>\n<\/li>\n<li>5 &nbsp;&nbsp;&nbsp;<a href=\"#timestamp-and-blob-data\">\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u30c7\u30fc\u30bf\u306e\u51e6\u7406<\/a><\/li>\n<li style=\"list-style: outside none none !important;\">\n<div class=\"inner-list\">\n<ul style=\"list-style-type: none !important; padding-left: 9px;\"><\/ul>\n<\/div>\n<\/li>\n<li>6 &nbsp;&nbsp;&nbsp;<a href=\"#reference\">\u53c2\u7167<\/a><\/li>\n<li style=\"list-style: outside none none !important;\">\n<div class=\"inner-list\">\n<ul style=\"list-style-type: none !important; padding-left: 9px;\">\n<li>6.1 <a href=\"#source-code\">Source Code<\/a><\/li>\n<\/ul>\n<\/div>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<h3 id=\"setup-node\"> Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u30b7\u30b9\u30c6\u30e0\u4e0a\u306bNode \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u30d3\u30eb\u30c9\u3059\u308b\u306b\u306f\u3001\u307e\u305a<a href=\"https:\/\/github.com\/griddb\/c_client\" title=\"C client Github Page\">GridDB C \u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/a>\u3092\u30d3\u30eb\u30c9\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u3042\u307e\u308a\u8a73\u3057\u304f\u306a\u3044\u65b9\u306f\u3001<a href=\"https:\/\/griddb.net\/en\/blog\/using-griddbs-cpythonruby-apis\/#c-intro\">\u3053\u306e\u30d6\u30ed\u30b0<\/a>\u306b\u6cbf\u3063\u3066\u3001C\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a2d\u5b9a\u3068\u30c6\u30b9\u30c8\u306e\u65b9\u6cd5\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 <a href=\"https:\/\/github.com\/griddb\/c_client\">GitHub\u30da\u30fc\u30b8<\/a>\u306b\u3082\u7c21\u5358\u306a\u8aac\u660e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>C\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3055\u308c\u305f\u3089\u3001\u6b21\u306bnode.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eGitHub\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">$ git clone https:\/\/github.com\/griddb\/nodejs_client\n<\/pre>\n<p>\u3053\u3053\u307e\u3067\u3067GitHub\u304b\u3089\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5165\u624b\u3057\u305f\u306e\u3067\u3001\u6b21\u306bNode.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e<a href=\"https:\/\/github.com\/griddb\/nodejs_client\" title=\"Node.js client Github repository\">Github \u30da\u30fc\u30b8<\/a>\u306e<code>README<\/code>\u306e\u4e2d\u306e\u30a4\u30f3\u30b9\u30c8\u30e9\u30af\u30b7\u30e7\u30f3\u306b\u5f93\u3044\u307e\u3059\u3002<\/p>\n<p>GitHub\u306e\u516c\u5f0fREADME\u6587\u66f8\u306b\u3088\u308b\u3068\u3001node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u30d3\u30eb\u30c9\u3059\u308b\u524d\u306b\u3001SWIG\u3068PCRE\u306e\u4e21\u65b9\u3092\u30d3\u30eb\u30c9\u3057\u3001\u52d5\u4f5c\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">$ wget https:\/\/sourceforge.net\/projects\/pcre\/files\/pcre\/8.39\/pcre-8.39.tar.gz\n$ tar xvfz pcre-8.39.tar.gz\n$ cd pcre-8.39\n$ .\/configure\n$ make\n$ make install\n\n$ wget https:\/\/prdownloads.sourceforge.net\/swig\/swig-3.0.12.tar.gz\n$ tar xvfz swig-3.0.12.tar.gz\n$ cd swig-3.0.12\n$ .\/configure\n$ make\n$ make install\n<\/pre>\n<h5 id=\"possible-build-issues\"> Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30d3\u30eb\u30c9\u6642\u306b\u8d77\u3053\u308a\u3046\u308b\u554f\u984c<\/h5>\n<p>\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u3001Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30d1\u30c3\u30b1\u30fc\u30b8\u3067<code> make <\/code>\u3092\u767a\u884c\u3059\u308b\u3068\u304d\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">$ make\nerror while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory\n<\/pre>\n<p>\u3053\u308c\u306f\u3001\u3053\u308c\u307e\u3067\u306e\u624b\u9806\u306b\u554f\u984c\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 node.js_client\u306eGitHub\u30a4\u30f3\u30b9\u30c8\u30e9\u30af\u30b7\u30e7\u30f3\u306b\u5f93\u3063\u3066\u9032\u3081\u308b\u5834\u5408\u306f\u3001make\u3059\u308b\u524d\u306bpcre\u3068swig\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u3046\u3057\u306a\u3044\u3068LIBRARY_PATH\u304cpcre\u3092\u6307\u3055\u305a\u3001SWIG\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u52d5\u4f5c\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u3068\u3044\u3063\u305f\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u308c\u304c\u8a72\u5f53\u3059\u308b\u304b\u3069\u3046\u304b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7c21\u5358\u306a\u30c6\u30b9\u30c8\u3067\u78ba\u304b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">$ swig -version\nswig: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory\n<\/pre>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u304c\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3059\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">$ find \/ -name libpcre.so.1\n<\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3092\u30e1\u30e2\u3057\u307e\u3059\u3002 \u5834\u6240\u304c\u5206\u304b\u3063\u305f\u3089\u3001\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class-\"prettyprint\"=\"\">$ export LD_LIBRARY_PATH=\/usr\/local\/lib:$LD_LIBRARY_PATH\n<\/pre>\n<p><code> swig -version <\/code>\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u304c\u6a5f\u80fd\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u3082\u3046\u4e00\u5ea6make\u3092\u3084\u308a\u76f4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u554f\u984c\u304c\u8d77\u3053\u308b\u5834\u5408\uff1a<\/p>\n<pre class=\"prettyprint\"> g++ -fPIC -std=c++0x -g -O2 -Iinclude -Isrc -Iusr\/include\/node -DNODE_GYP_MODULE_NAME=griddb -DV8_DEPRECATION_WARNINGS=1 -DBUILDING_NODE_EXTENSION -c -o src\/griddb_js.o src\/griddb_js.cxx\nsrc\/griddb_js.cxx:171:18: fatal error: node.h: No such file or directory\n #include <node.h>\n                  ^\ncompilation terminated.\nmake: *** [src\/griddb_js.o] Error 1\n<\/node.h><\/pre>\n<p>node.js\u958b\u767a\u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001Makefile\u3092\u7de8\u96c6\u3057\u3066node.h\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"prettyprint\">$ sudo yum install nodejs-devel\n$ cd ~\/nodejs_client\n$ vi Makefile\n\nINCLUDES_JS += -I\/usr\/include\/node\n<\/pre>\n<p>\u3053\u308c\u3067node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u6b63\u3057\u304f\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002 \u3082\u3057\u3053\u308c\u4ee5\u5916\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3001<a href=\"\/en\/forums\/forum\/top\/\">\u30d5\u30a9\u30fc\u30e9\u30e0<\/a>\u306b\u6295\u7a3f\u3057\u3066\u30b5\u30dd\u30fc\u30c8\u3092\u53d7\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 id=\"connecting-to-griddb\"> JavaScript\u3092\u4f7f\u7528\u3057\u305fGridDB\u3078\u306e\u63a5\u7d9a<\/h3>\n<p>\u3053\u3053\u307e\u3067\u3067\u6e96\u5099\u4f5c\u696d\u304c\u5b8c\u4e86\u3057\u305f\u306e\u3067\u3001JavaScript\u3092\u4f7f\u3063\u3066GridDB\u306b\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u3053\u308c\u4ee5\u964d\u306f\u4ed6\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u540c\u3058\u30d7\u30ed\u30bb\u30b9\uff08 &#8220;require&#8221;\uff09\u3067\u3059\u3002<\/p>\n<p>GridDB\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u63a5\u7d9a\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">var griddb = require('griddb_node');\nvar fs     = require('fs');\n\nvar factory = griddb.StoreFactory.getInstance();\nvar store = factory.getStore({\n                        \"host\": process.argv[2],\n                        \"port\": process.argv[3],\n                        \"cluster_name\": process.argv[4],\n                        \"username\": process.argv[5],\n                        \"password\": process.argv[6]});\n\n<\/pre>\n<p>\u6700\u521d\u306e2\u884c\u306f\u6a19\u6e96\u306enode.js\u5b9a\u578b\u6587\u3067\u3059\u3002 \u5909\u6570<code>store<\/code>\u306f\u3001node.js\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\uff08CL\uff09\u5f15\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002 \u4e00\u822c\u7684\u306a\u30ce\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3068\u304d\u306f\u3001\u7aef\u672b\u3067\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">$ node file1.js\n<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001GridDB\u30af\u30e9\u30b9\u30bf\u306b\u63a5\u7d9a\u3057\u3066\u30b3\u30fc\u30c9\u3092\u540c\u6642\u306b\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001CL\u5f15\u6570\u3092\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">$ node blog.js 239.0.0.1 31999 temperature admin admin\n<\/pre>\n<h3 id=\"schemas-containers\">\u30b9\u30ad\u30fc\u30de\u3068\u30b3\u30f3\u30c6\u30ca\u306e\u4f5c\u6210<\/h3>\n<p>\u30b3\u30f3\u30c6\u30ca\u3068\u884c\u306e\u30b9\u30ad\u30fc\u30de\u306f\u3001<code>store.putContainer<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3068\u3082\u306b<code>griddb.ContainerInfo<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u306b\u3088\u3063\u3066\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002 \u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"http:\/\/www.griddb.org\/nodejs_client\/NodejsAPIReference.htm\">node.js API \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u65b0\u3057\u3044\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6700\u521d\u306b<code>griddb.ContainerInfo<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u65b0\u3057\u3044\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3066\u5217\u30bf\u30a4\u30d7\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">var conInfo = new griddb.ContainerInfo(\"col01\",\n                   [\n                        [\"name\", griddb.GS_TYPE_STRING],\n                        [\"status\", griddb.GS_TYPE_BOOL],\n                        [\"count\", griddb.GS_TYPE_LONG],\n                        [\"lob\", griddb.GS_TYPE_BLOB]\n                   ], griddb.GS_CONTAINER_COLLECTION,\n                   true)\n\n<\/pre>\n<p>\u6700\u521d\u306e\u30d1\u30e9\u30e1\u30fc\u30bf<code>string<\/code>\u306f\u30b3\u30f3\u30c6\u30ca\u540d\u3067\u3059\u3002 \u6b8b\u308a\u306f\u3001\u305d\u306e\u5217\u306e\u578b\u3068\u540d\u524d\u3067\u3059\u3002<\/p>\n<p>\u884c\u306f\u3001<code>griddb.Container put<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3057\u3066\u5217\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001<\/p>\n<pre class=\"prettyprint\">var col2;\nstore.putContainer(conInfo, false)\n\t.then(col =&gt; {\n\t \tcol2 = col;\n\t\tcol.createIndex(\"count\", griddb.GS_INDEX_FLAG_DEFAULT);\n\t\treturn col;\n  \t})\n\t.then(col =&gt; {\n\t\tcol.setAutoCommit(false);\n\t\tcol.put([\"name01\", false, 1, \"ABCDEFGHIJ\"]);\n\t\treturn col;\n\t})\n\n\/\/ \u4ee5\u4e0b\u306f\u7701\u7565\u3057\u307e\u3059\u3002\n<\/pre>\n<p><code>putContainer<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u6700\u521d\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u30b3\u30f3\u30c6\u30ca\u60c5\u5831(<code>conInfo<\/code>) \u3092\u3068\u308a\u307e\u3059\u3002 \u6b21\u306b\u3001<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Promise\">JavaScript promises<\/a>\u3092\u51e6\u7406\u3057\u3066\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3057\u3001\u5217\u3068\u30c7\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u307e\u3059 \u3002 <code>col.put<\/code>\u306f\u3001<code>STRING<\/code>\u578b\u306e &#8220;name&#8221;\u3068\u3044\u3046\u5217\u306b\u30c7\u30fc\u30bf\u884c\u3092\u660e\u793a\u7684\u306b\u914d\u7f6e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 id=\"queries\">\u30c7\u30fc\u30bf\u306e\u30af\u30a8\u30ea\u3068\u53d6\u5f97<\/h3>\n<p>\u30b3\u30f3\u30c6\u30ca\u306b\u30c7\u30fc\u30bf\u304c\u683c\u7d0d\u3055\u308c\u3001GridDB\u306b\u633f\u5165\u3055\u308c\u308b\u3068\u3001\u30c7\u30fc\u30bf\u306e\u30af\u30a8\u30ea\u3068\u30d5\u30a7\u30c3\u30c1\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002 Python\u3084Java API\u3068\u540c\u69d8\u306b\u3001\u30b3\u30f3\u30c6\u30ca\u306b\u5bfe\u3057\u767a\u884c\u3057\u305f\u3044TQL\u30af\u30a8\u30ea\u3092\u4f7f\u3063\u3066<b>Query\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/b>\uff08\u307e\u305f\u306f<code>griddb_go.Query<\/code>\u578b\uff09\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002 \u3053\u308c\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30af\u30a8\u30ea\u306e\u7d50\u679c\u3092<b>\u53d6\u5f97<\/b>\u3057\u3066<code>griddb_go.RowSet<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30c6\u30ca\u306b\u95a2\u9023\u3059\u308b\u30c7\u30fc\u30bf\u304c\u5165\u529b\u3055\u308c\u308b\u3068\u3001\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u304c\u5fc5\u305a\u30af\u30a8\u30ea\u30fc\u3055\u308c\u307e\u3059\u3002 node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8API\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u3092\u7167\u4f1a\u3059\u308b\u306b\u306f\u3001<code>container<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089<code>query<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002 GridDB\u306f\u3001SQL\u306b\u4f3c\u305f\u8a00\u8a9eTQL\u3092\u4f7f\u7528\u3057\u3066\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 \u4f8b\u3048\u3070\uff1a<\/p>\n<pre class=\"prettyprint\">var col2;\nstore.putContainer(conInfo, false)\n        .then(col =&gt; {\n                col2 = col;\n                col.createIndex(\"count\", griddb.GS_INDEX_FLAG_DEFAULT);\n                return col;\n        })\n        .then(col =&gt; {\n                col.setAutoCommit(false);\n                col.put([\"name01\", false, 1, \"ABCDEFGHIJ\"]);\n                return col;\n        })\n        .then(col =&gt; {\n                col.commit(); \/\/commits calls are required to commit the current transaction and start a new transaction\n                return col;\n        })\n        .then(col =&gt; {\n                \/\/ container.query takes the raw TQL \n                query = col.query(\"select *\");\n                \/\/ the fetch method returns the results in the form of RowSet\n                return query.fetch();\n        })\n        .then(rs =&gt; {\n                \/\/ RowSet is the result from the query.fetch\n                while (rs.hasNext()) { \/\/ While the row has another row after the current\n                        console.log(rs.next());\/\/print that row\n                }\n                col2.commit();\n        })\n        .catch(err =&gt; {\n                console.log(err.what());\n                for (var i = 0; i &lt; err.getErrorStackSize(); i++) {\n                        console.log(\"[\", i, \"]\");\n                        console.log(err.getErrorCode(i));\n                        console.log(err.getMessage(i));\n                }\n        });\n\n<\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u306b\u306f\u3001\u95a2\u9023\u3059\u308b\u90e8\u5206\u3092\u8aac\u660e\u3059\u308b\u30b3\u30e1\u30f3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002 GridDB\u306e\u30b3\u30f3\u30c6\u30ca\/\u30ab\u30e9\u30e0\u3092\u30af\u30a8\u30ea\u3059\u308b\u306b\u306f\u3001<code>query<\/code>\u30e1\u30bd\u30c3\u30c9\u3068<code>fetch<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u7d44\u307f\u5408\u308f\u305b\u3092\u3001RowSet\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e<code> next() <\/code>\u30e1\u30bd\u30c3\u30c9\u3068\u3068\u3082\u306b\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30af\u30a8\u30ea\u306e\u7d50\u679c\u3092\u8fd4\u3059\u3068\u3001RowSet promise\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002 \u3053\u306epromise\u3088\u308a\u3001\u5178\u578b\u7684\u306a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306f\u3001<code> while <\/code>\u30eb\u30fc\u30d7\u3092\u5b9f\u884c\u3057\u3001 <code>while<\/code><code>RowSet.hasNext()<\/code>\u3092\u30c1\u30a7\u30c3\u30af\u3057<code> RowSet.next()<\/code>\u3092\u30d7\u30ea\u30f3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<h4 id=\"aggregation-tql\">\u96c6\u8a08TQL<\/h4>\n<p><i>TQL<\/i>\u3092\u4f7f\u7528\u3057\u3066\u96c6\u7d04\u30af\u30a8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u767a\u884c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 \u30b3\u30f3\u30c6\u30ca\u304b\u3089<code>griddb_go.AggregationResult<\/code>\u3092\u5b9f\u884c\u3057\u3066\u30d5\u30a7\u30c3\u30c1\u3059\u308b\u65b9\u6cd5\u306f\u3001Python API\u306b\u3088\u304f\u4f3c\u3066\u304a\u308a\u3001\u30af\u30a8\u30ea\u304b\u3089<b>RowSet<\/b> \u3092\u53d6\u5f97\u3057\u305f\u3089\u3001<code>rowSet.NextRow()<\/code>\u3092\u4f7f\u7528\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001<code>.NextAggregation()<\/code>\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u305d\u306e<code>AggregationResult<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u5fc5\u8981\u306a\u756a\u53f7\u306e\u578b\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b<code>.Get()<\/code>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>TQL\u3067\u306f\u3001\u96c6\u7d04\u30af\u30a8\u30ea\u3092\u767a\u884c\u3059\u308b\u6a5f\u80fd\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002 \u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001\u9069\u5207\u306a<a href=\"https:\/\/griddb.net\/en\/docs\/GridDB_API_Reference.html#sec-3.3.2\">\u96c6\u7d04\u64cd\u4f5c<\/a>\u3092\u4f7f\u7528\u3057\u3066\u751f\u306eTQL\u30af\u30a8\u30ea\u3092\u767a\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\uff1a<\/p>\n<pre class=\"prettyprint\">var timeseries;\nstore.getContainer(\"point01\")\n        .then(ts =&gt; {\n        timeseries = ts;\n        query = ts.query(\"select * from point01 where not active and voltage &gt; 50\");\n        return query.fetch();\n    })\n        .then(rowset =&gt; {\n        var row;\n        while (rowset.hasNext()) {\n            row = rowset.next();\n            var timestamp = Date.parse(row[0]);\n            aggCommand = \"select AVG(voltage) from point01 where timestamp &gt; TIMESTAMPADD(MINUTE, TO_TIMESTAMP_MS(\" + timestamp + \"), -10) AND timestamp &lt; TIMESTAMPADD(MINUTE, TO_TIMESTAMP_MS(\" + timestamp + \"), 10)\";\n            aggQuery = timeseries.query(aggCommand);\n\n            aggQuery.fetch()\n                .then(aggRs =&gt; {\n                    while (aggRs.hasNext()) {\n                        aggResult = aggRs.next();\n                        console.log(\"[Timestamp = \" + timestamp + \"] Average voltage = \"+ aggResult.get(griddb.GS_TYPE_DOUBLE));\n                    }\n                });\n       }\n    })\n<\/pre>\n<p>\u4e0a\u8a18\u306e\u4f8b\u306e\u3088\u3046\u306b\u3001\u96c6\u8a08\u7d50\u679c\u3092\u7167\u4f1a\u3057\u5b9f\u884c\u3059\u308b\u6e96\u5099\u304c\u3067\u304d\u305f\u3089\u3001API\u306b\u306f\u7279\u5225\u306a<code>AggregationResult.get(Type type) <\/code>\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3 id=\"timestamp-data\">\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u30c7\u30fc\u30bf\u306e\u51e6\u7406<\/h3>\n<p>GridDB\u306fTimeSeries\u30c7\u30fc\u30bf\u3092\u91cd\u8996\u3057\u3001IoT\u306b\u304a\u3051\u308b\u512a\u4f4d\u6027\u3092\u72d9\u3063\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3042\u308b\u305f\u3081\u3001TimeSeries\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b\u624b\u6bb5\u304c\u5fc5\u8981\u3067\u3059\u3002\u5e78\u3044\u306a\u3053\u3068\u306b\u3001JavaScript\u306f\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u6301\u3064\u30c7\u30fc\u30bf\u306e\u51e6\u7406\u306b\u3059\u3067\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u305f\u3081\u3001 \u7279\u5225\u306a\u6a5f\u80fd\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h2 id=\"conclusion\">\u7d50\u8ad6<\/h2>\n<p>\u30d6\u30ed\u30b0\u306f\u3053\u308c\u3067\u4ee5\u4e0a\u3067\u3059\u3002\u3053\u306e\u30d6\u30ed\u30b0\u304c\u3001\u307f\u306a\u3055\u3093\u304cnode.js\u3068GridDB\u3092\u4f7f\u3063\u3066\u958b\u767a\u3092\u59cb\u3081\u308b\u969b\u306b\u5f79\u7acb\u3064\u3053\u3068\u3092\u671f\u5f85\u3057\u3066\u3044\u307e\u3059\u3002 \u4f55\u304b\u3054\u4e0d\u660e\u306a\u70b9\u304c\u3042\u308c\u3070\u3001<a href=\"\/en\/forums\/forum\/top\/\"> GridDB\u30d5\u30a9\u30fc\u30e9\u30e0<\/a>\u3067\u8cea\u554f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 id=\"reference\">\u53c2\u7167<\/h3>\n<ul>\n<li>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001<b>CentOS 6.9<\/b> operating system\u4e0a\u3067 Node.js <a href=\"https:\/\/nodejs.org\/en\/download\/package-manager\/\" title=\"Download Node.js via package manager\">\u30d0\u30fc\u30b8\u30e7\u30f3 6.14.3<\/a>\u304c\u4f7f\u7528\u3055\u308c\u307e\u3057\u305f\u3002<\/li>\n<li>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001GridDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3057\u3066<a href=\"https:\/\/github.com\/griddb\/griddb_nosql\/releases\/download\/v3.0.1\/griddb_nosql-3.0.1-1.linux.x86_64.rpm\" title=\"Download GridDB CE\">GridDB Community Edition 3.0.1<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<\/li>\n<li> GridDB node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3001<a href=\"https:\/\/github.com\/griddb\/nodejs_client\" title=\"Node.js client Github Page\">official Github repository<\/a>\u306b\u3042\u308a\u307e\u3059\u3002<\/li>\n<li> <a href=\"http:\/\/www.griddb.org\/nodejs_client\/NodejsAPIReference.htm\" title=\"Node.js API Reference\">\u3053\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30da\u30fc\u30b8<\/a> \u306bnode.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308bGridDB\u306e\u3059\u3079\u3066\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u30ea\u30bd\u30fc\u30b9\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<h4 id=\"source-code\">\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h4>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u4f7f\u7528\u3057\u305f\u3059\u3079\u3066\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3001 <a href=\"https:\/\/github.com\/griddb\/nodejs_client\/tree\/master\/sample\">GitHub page<\/a>\u306b\u3042\u308a\u307e\u3059\u3002<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b GridDB\u306f\u8fd1\u5e74\u975e\u5e38\u306b\u4eba\u6c17\u306e\u3042\u308bnode.js\u3068\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306fGo\u8a00\u8a9e\u30b3\u30cd\u30af\u30bf\u3068\u540c\u69d8\u306b\u3001SWIG \u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u69cb\u7bc9\u3055\u308c\u3066\u3044\u307e\u3059\u3002 node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001CentOS  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":49059,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50679","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GridDB Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u306f\u3058\u3081\u306b GridDB\u306f\u8fd1\u5e74\u975e\u5e38\u306b\u4eba\u6c17\u306e\u3042\u308bnode.js\u3068\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306fGo\u8a00\u8a9e\u30b3\u30cd\u30af\u30bf\u3068\u540c\u69d8\u306b\u3001SWIG\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/getting-started-with-the-griddb-nodejs-client\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GridDB Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u306f\u3058\u3081\u306b GridDB\u306f\u8fd1\u5e74\u975e\u5e38\u306b\u4eba\u6c17\u306e\u3042\u308bnode.js\u3068\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306fGo\u8a00\u8a9e\u30b3\u30cd\u30af\u30bf\u3068\u540c\u69d8\u306b\u3001SWIG\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/getting-started-with-the-griddb-nodejs-client\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-17T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-14T15:53:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/wp-content\/uploads\/2018\/07\/blog_title_28.png\" \/>\n\t<meta property=\"og:image:width\" content=\"870\" \/>\n\t<meta property=\"og:image:height\" content=\"490\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Israel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Israel\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/\"},\"author\":{\"name\":\"Israel\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740\"},\"headline\":\"GridDB Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046\",\"datePublished\":\"2018-07-17T07:00:00+00:00\",\"dateModified\":\"2025-11-14T15:53:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/\"},\"wordCount\":187,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2018\/07\/blog_title_28.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/\",\"url\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/\",\"name\":\"GridDB Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2018\/07\/blog_title_28.png\",\"datePublished\":\"2018-07-17T07:00:00+00:00\",\"dateModified\":\"2025-11-14T15:53:44+00:00\",\"description\":\"\u306f\u3058\u3081\u306b GridDB\u306f\u8fd1\u5e74\u975e\u5e38\u306b\u4eba\u6c17\u306e\u3042\u308bnode.js\u3068\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306fGo\u8a00\u8a9e\u30b3\u30cd\u30af\u30bf\u3068\u540c\u69d8\u306b\u3001SWIG\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2018\/07\/blog_title_28.png\",\"contentUrl\":\"\/wp-content\/uploads\/2018\/07\/blog_title_28.png\",\"width\":870,\"height\":490},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb.net\/en\/#website\",\"url\":\"https:\/\/griddb.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740\",\"name\":\"Israel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g\",\"caption\":\"Israel\"},\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/author\/israel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GridDB Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 | GridDB: Open Source Time Series Database for IoT","description":"\u306f\u3058\u3081\u306b GridDB\u306f\u8fd1\u5e74\u975e\u5e38\u306b\u4eba\u6c17\u306e\u3042\u308bnode.js\u3068\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306fGo\u8a00\u8a9e\u30b3\u30cd\u30af\u30bf\u3068\u540c\u69d8\u306b\u3001SWIG","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/getting-started-with-the-griddb-nodejs-client\/","og_locale":"ja_JP","og_type":"article","og_title":"GridDB Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 | GridDB: Open Source Time Series Database for IoT","og_description":"\u306f\u3058\u3081\u306b GridDB\u306f\u8fd1\u5e74\u975e\u5e38\u306b\u4eba\u6c17\u306e\u3042\u308bnode.js\u3068\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306fGo\u8a00\u8a9e\u30b3\u30cd\u30af\u30bf\u3068\u540c\u69d8\u306b\u3001SWIG","og_url":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/getting-started-with-the-griddb-nodejs-client\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2018-07-17T07:00:00+00:00","article_modified_time":"2025-11-14T15:53:44+00:00","og_image":[{"width":870,"height":490,"url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/wp-content\/uploads\/2018\/07\/blog_title_28.png","type":"image\/png"}],"author":"Israel","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"Israel","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/"},"author":{"name":"Israel","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740"},"headline":"GridDB Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046","datePublished":"2018-07-17T07:00:00+00:00","dateModified":"2025-11-14T15:53:44+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/"},"wordCount":187,"commentCount":0,"publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2018\/07\/blog_title_28.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/","url":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/","name":"GridDB Node.js\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046 | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2018\/07\/blog_title_28.png","datePublished":"2018-07-17T07:00:00+00:00","dateModified":"2025-11-14T15:53:44+00:00","description":"\u306f\u3058\u3081\u306b GridDB\u306f\u8fd1\u5e74\u975e\u5e38\u306b\u4eba\u6c17\u306e\u3042\u308bnode.js\u3068\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306fGo\u8a00\u8a9e\u30b3\u30cd\u30af\u30bf\u3068\u540c\u69d8\u306b\u3001SWIG","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-the-griddb-nodejs-client\/#primaryimage","url":"\/wp-content\/uploads\/2018\/07\/blog_title_28.png","contentUrl":"\/wp-content\/uploads\/2018\/07\/blog_title_28.png","width":870,"height":490},{"@type":"WebSite","@id":"https:\/\/griddb.net\/en\/#website","url":"https:\/\/griddb.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740","name":"Israel","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g","caption":"Israel"},"url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/author\/israel\/"}]}},"_links":{"self":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/posts\/50679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/comments?post=50679"}],"version-history":[{"count":1,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/posts\/50679\/revisions"}],"predecessor-version":[{"id":51522,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/posts\/50679\/revisions\/51522"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/media\/49059"}],"wp:attachment":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/media?parent=50679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/categories?post=50679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/ja\/wp-json\/wp\/v2\/tags?post=50679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}