{"_id":"@alexaandrov/graphql-rest-proxy","_rev":"6-d002aad86988b7c3ddd2674c92de607a","name":"@alexaandrov/graphql-rest-proxy","dist-tags":{"latest":"0.4.11"},"versions":{"0.4.5":{"name":"@alexaandrov/graphql-rest-proxy","version":"0.4.5","description":"Turn your REST API into GraphQL - A Proxy Server that pipes request from GraphQL to REST with GraphQL DSL, performant nested children, mutations, input types, and more.","main":"dist/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/acro5piano/graphql-rest-proxy.git"},"author":{"name":"gosho-kazuya","email":"ketsume0211@gmail.com"},"license":"MIT","keywords":["cli-app","expressjs","graphql","graphql-server","javascript","proxy","rest","rest-api","typescript"],"scripts":{"start":"npm run ts-run ./src/index.ts","ts-run":"ts-node -T -r tsconfig-paths/register --project tsconfig.dev.json","dev":"nodemon","mock":"npm run ts-run src/__tests__/run-mock-server.ts","prepublish":"npm-run-all clean build","publish":"node ./node_modules/.bin/pack publish","clean":"rm -rf dist/*","build":"pack build","try":"npm-run-all --parallel mock try:proxy","try:proxy":"npm run ts-run ./src/index.ts -c examples/proxy.config.js examples/schema.graphql","test":"cross-env NODE_ENV=testing jest","test:coverage":"cross-env NODE_ENV=testing jest --coverage"},"dependencies":{"body-parser":"^1.18.3","chalk":"^2.4.2","commander":"^2.19.0","cors":"^2.8.5","express":"^4.16.4","graphql":"^14.1.1","graphql-tag":"^2.10.1","request":"^2.88.0","request-promise":"^4.2.4","uuid":"^3.3.2","yargs":"^13.0.0-candidate.0"},"devDependencies":{"@pika/pack":"^0.3.5","@pika/plugin-build-node":"^0.3.14","@pika/plugin-simple-bin":"^0.3.14","@pika/plugin-ts-standard-pkg":"^0.3.14","@types/body-parser":"^1.17.0","@types/chalk":"^2.2.0","@types/express":"^4.16.1","@types/get-port":"^4.0.1","@types/graphql":"^14.0.7","@types/jest":"^24.0.11","@types/node":"^11.11.4","@types/request":"^2.48.1","@types/request-promise":"^4.1.42","@types/supertest":"^2.0.7","@types/uuid":"^3.4.4","codecov":"^3.2.0","cross-env":"^5.2.0","get-port":"^4.2.0","jest":"^24.5.0","nodemon":"^1.18.10","npm-run-all":"^4.1.5","prettier":"^1.16.4","supertest":"^4.0.2","ts-jest":"^24.0.0","ts-node":"^8.0.3","tsconfig-paths":"^3.8.0","typescript":"^3.3.4000"},"@pika/pack":{"pipeline":[["@pika/plugin-ts-standard-pkg"],["@pika/plugin-build-node"],["@pika/plugin-simple-bin",{"bin":"graphql-rest-proxy","minNodeVersion":8}]]},"gitHead":"19d1a8359dd23fb3c4c451542f312672768635fa","bugs":{"url":"https://github.com/acro5piano/graphql-rest-proxy/issues"},"homepage":"https://github.com/acro5piano/graphql-rest-proxy#readme","_id":"@alexaandrov/graphql-rest-proxy@0.4.5","_nodeVersion":"12.10.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-U/gHM6UrnfWdfUV2LiuS8EEWf3nN0XSNG6pUFjrlIJL2nmBgluYK4r9kopo/uDjSrV1y2D4YuvtejS19kQkPfg==","shasum":"b752e54a3e0117bf47e29aa565fefcec459e5308","tarball":"https://registry.npmjs.org/@alexaandrov/graphql-rest-proxy/-/graphql-rest-proxy-0.4.5.tgz","fileCount":111,"unpackedSize":128022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeN8pnCRA9TVsSAnZWagAABmYP/RVZ90r+M9PlcAbjwKzP\nQLNSwk7E2GlDnhH1ycEmOMazB7Z2oqMgm/JdvAu3ZTrhOGi4ZYxyxqk+loBz\nPH97U1Q+ZcxsCZc/mh7o9YQv2CDfS5mMQkBuzs05CNxOjtCn0TWZdSH0VdxW\nSpl8tYBvD2ZxocG4OttUF4PTmwaF0iJkBmcAxkauuzVYejkqR+9/hl/JdDVF\nx+qWdSluxI039K7+wRKoPeKvPoWyK5bpSq8bnapen6O6FxXhkFUgM1AOGuUY\nXYQZrhzc0EXgKsP1V6aiW81R0kZDHV8gYMVfPOsXW+3iYlxZZM6ZFTHsH37p\neVz8BBD2n3TOh6CmpByvt0c0qdSDMIrgxxBqPc93horBBJRBe7oEzzUnQqXj\nIfzEIf9rO3OX6GuYTUfdiyYpn1zBdwNWe4O9OxM0J2TdPOkGyelE1Brs5nfR\nHndMQUTRpDi4VRi5YWgBAZ1Ag8ka31zbM7g4tq+8+uGeIFJJIZOl9Hl/Bsaw\nE/B3+ptgEtThrGp7s23DuFEHFPbijgvQaTpvt8ccYB1nBw/mEPR/Zc3B0blc\nYXj7TCy9x17h0AS7FEogoDTTrv16jAqxvqikeb7+AgzPzhDknaXjcRFMPYc+\nWS7bTyropSuyl/KyWOmyxXJMsDvNqC2feXxERpGO3cwj0YWU7JXRsG04lQLZ\n38zP\r\n=NRBZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCD1Bn3g0bmQHr9oOmgF2qOzuDfsqLL7cKCBC+b/hDHcwIgL1QYZpoEPSwoFO/wj5ah6ZK8iz7GYhOVZTeqNGV4O9Y="}]},"maintainers":[{"name":"alexaandrov","email":"alexaandrov@gmail.com"}],"_npmUser":{"name":"alexaandrov","email":"alexaandrov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-rest-proxy_0.4.5_1580714598957_0.036241393699810054"},"_hasShrinkwrap":false},"0.4.6":{"name":"@alexaandrov/graphql-rest-proxy","version":"0.4.6","description":"Turn your REST API into GraphQL - A Proxy Server that pipes request from GraphQL to REST with GraphQL DSL, performant nested children, mutations, input types, and more.","main":"dist/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/acro5piano/graphql-rest-proxy.git"},"author":{"name":"gosho-kazuya","email":"ketsume0211@gmail.com"},"license":"MIT","keywords":["cli-app","expressjs","graphql","graphql-server","javascript","proxy","rest","rest-api","typescript"],"scripts":{"start":"npm run ts-run ./src/index.ts","ts-run":"ts-node -T -r tsconfig-paths/register --project tsconfig.dev.json","dev":"nodemon","mock":"npm run ts-run src/__tests__/run-mock-server.ts","prepublish":"npm-run-all clean build","publish":"node ./node_modules/.bin/pack publish","clean":"rm -rf dist/*","build":"pack build","try":"npm-run-all --parallel mock try:proxy","try:proxy":"npm run ts-run ./src/index.ts -c examples/proxy.config.js examples/schema.graphql","test":"cross-env NODE_ENV=testing jest","test:coverage":"cross-env NODE_ENV=testing jest --coverage"},"dependencies":{"body-parser":"^1.18.3","chalk":"^2.4.2","commander":"^2.19.0","cors":"^2.8.5","express":"^4.16.4","graphql":"^14.1.1","graphql-tag":"^2.10.1","request":"^2.88.0","request-promise":"^4.2.4","uuid":"^3.3.2","yargs":"^13.0.0-candidate.0"},"devDependencies":{"@pika/pack":"^0.3.5","@pika/plugin-build-node":"^0.3.14","@pika/plugin-simple-bin":"^0.3.14","@pika/plugin-ts-standard-pkg":"^0.3.14","@types/body-parser":"^1.17.0","@types/chalk":"^2.2.0","@types/express":"^4.16.1","@types/get-port":"^4.0.1","@types/graphql":"^14.0.7","@types/jest":"^24.0.11","@types/node":"^11.11.4","@types/request":"^2.48.1","@types/request-promise":"^4.1.42","@types/supertest":"^2.0.7","@types/uuid":"^3.4.4","codecov":"^3.2.0","cross-env":"^5.2.0","get-port":"^4.2.0","jest":"^24.5.0","nodemon":"^1.18.10","npm-run-all":"^4.1.5","prettier":"^1.16.4","supertest":"^4.0.2","ts-jest":"^24.0.0","ts-node":"^8.0.3","tsconfig-paths":"^3.8.0","typescript":"^3.3.4000"},"@pika/pack":{"pipeline":[["@pika/plugin-ts-standard-pkg"],["@pika/plugin-build-node"],["@pika/plugin-simple-bin",{"bin":"graphql-rest-proxy","minNodeVersion":8}]]},"gitHead":"5e356b059a6567e71c7c7ecabc8306e526aecdf9","bugs":{"url":"https://github.com/acro5piano/graphql-rest-proxy/issues"},"homepage":"https://github.com/acro5piano/graphql-rest-proxy#readme","_id":"@alexaandrov/graphql-rest-proxy@0.4.6","_nodeVersion":"12.10.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-PKmGm0gISLsSaqxFDHFNDEIqUB9MFN1qSVNAD5zs3ULxggWHSmzE38IjLdxcO1fX7KftuHACVo3hOpsmeHlXqw==","shasum":"f9726601c20d4af23406db49cefc9e326a647059","tarball":"https://registry.npmjs.org/@alexaandrov/graphql-rest-proxy/-/graphql-rest-proxy-0.4.6.tgz","fileCount":111,"unpackedSize":128022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeN8r1CRA9TVsSAnZWagAAOswQAI5BnAejZGpUn0isroQT\nX8gBRqh1KnPildESQbxy+kHz4FhlPiQ7NaDSZd1cuVQk0W7nNbFtLyyFbw6u\nf61gfwjsnnOCgExYzv/xuQrpDhE+M09n4hFIaC/JMVkOTIg+6pwAvSKElhWO\nIfBnSxBFrnaZPhEKDAUcrZAsZDYGwszaC0ZGuMJ0QL79LO77OEINwCdxx4bH\n89VZijzWvOtsULRVqpusvnOhKE0ez2mDT3KrH6zBNUuqsWA7N8/9sY+bOST/\n9KTCfOiTE/GjcRzUKFo9RLfbnH2W16QzwlUJPagIn1ycLb8T5y3j+wMLEHVV\n/e6ieA2u/Z8DsvDRnuKYHBhqIEGAinBde3umqZy1tPEMTxgCBbxpgjCbJfnl\nzuOmrtq84t5kXfvFiKEAGeVwF/PqjyEofn4nNNdgi8oJwDKC3sYF4uy2h/Ud\nAu1nWCHdpxPy0MFKsYmpbBt+02flG/9G94MNFNF+yEwGa3MjBhrIWbXEjlwN\niawRg0dMGjD4XLQZgqsmMsuXnQwpiSbajgJgTwXZaML81avE5MmqbyDWbVdI\nGW69RobTURj2MwFeLLmPcWZOWUU19PCdtQF3AeJWdT96K4jxW1xBOdeSOGzi\nl1xyOoz6eWEoF8FC9EZPa1rDH58jOOmvB83xM583pnhC7UroTpp0ezEJo3yL\nR10s\r\n=bmQ0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpvJ2qFpdHS+LZCw+2F+1G5kh5fo8Wnsw2gZwbKE6zpwIgSCPF+YmvkeCgWhv7sWiCPDvmiRb+JX9EdZn1+gqutv8="}]},"maintainers":[{"name":"alexaandrov","email":"alexaandrov@gmail.com"}],"_npmUser":{"name":"alexaandrov","email":"alexaandrov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-rest-proxy_0.4.6_1580714740522_0.9244790335948998"},"_hasShrinkwrap":false},"0.4.7":{"name":"@alexaandrov/graphql-rest-proxy","description":"Turn your REST API into GraphQL - A Proxy Server that pipes request from GraphQL to REST with GraphQL DSL, performant nested children, mutations, input types, and more.","version":"0.4.7","license":"MIT","bin":{"graphql-rest-proxy":"dist-node/index.bin.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["cli-app","expressjs","graphql","graphql-server","javascript","proxy","rest","rest-api","typescript"],"repository":{"type":"git","url":"git@github.com:acro5piano/graphql-rest-proxy"},"dependencies":{"body-parser":"^1.18.3","chalk":"^2.4.2","commander":"^2.19.0","cors":"^2.8.5","express":"^4.16.4","graphql":"^14.1.1","graphql-tag":"^2.10.1","request":"^2.88.0","request-promise":"^4.2.4","uuid":"^3.3.2","yargs":"^13.0.0-candidate.0"},"devDependencies":{"@pika/pack":"^0.3.5","@pika/plugin-build-node":"^0.3.14","@pika/plugin-simple-bin":"^0.3.14","@pika/plugin-ts-standard-pkg":"^0.3.14","@types/body-parser":"^1.17.0","@types/chalk":"^2.2.0","@types/express":"^4.16.1","@types/get-port":"^4.0.1","@types/graphql":"^14.0.7","@types/jest":"^24.0.11","@types/node":"^11.11.4","@types/request":"^2.48.1","@types/request-promise":"^4.1.42","@types/supertest":"^2.0.7","@types/uuid":"^3.4.4","codecov":"^3.2.0","cross-env":"^5.2.0","get-port":"^4.2.0","jest":"^24.5.0","nodemon":"^1.18.10","npm-run-all":"^4.1.5","prettier":"^1.16.4","supertest":"^4.0.2","ts-jest":"^24.0.0","ts-node":"^8.0.3","tsconfig-paths":"^3.8.0","typescript":"^3.3.4000"},"licenseText":"MIT License\n\nCopyright (c) 2019 Kay Gosho\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@alexaandrov/graphql-rest-proxy@0.4.7","dist":{"shasum":"9d5e3db3d1d094a818aea8e0b9579bb32d4e5758","integrity":"sha512-GeULjGg9Qjfbh5H22+s6HU+4RPjHVx8/yQ2pE2qmpTmnlPGySz7gvBFBr3GLfp3TEpWV/iZY6fR8BZJnGYLgrA==","tarball":"https://registry.npmjs.org/@alexaandrov/graphql-rest-proxy/-/graphql-rest-proxy-0.4.7.tgz","fileCount":87,"unpackedSize":89187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeN9H2CRA9TVsSAnZWagAAjaYP/34Cq35o2JmO3hmr1Xj1\nBhAT01vzf4u2e1kSFtRrOiofc2rLzCugYpfU3cCnYRyxmIyafJbovXh6u82/\nBN14ONQCHsei8kt2tmDZ++rdy0hmWn1xX6DM9VUdkLfeoZHVAhSQmzl6W8QI\nUapgJh8EAZpqpgcv2WqgsdUjd3Bs4N7S9mZ4NZtfeGbDN85B+Jsz4X645qKz\naxVJErFxhcRKQC9yYnfG9U7YfyFMPa72AHn9w+al+BjrOTcZocTiDn+Os4mD\nUz3L8aVz8INACB0W6E8m69Qrpv3q5VW9IlrGrexeZ8fqpyaZ6HdtbfaJ38We\nnj5BSPsFCSkeeeaRpxPFQjLDt+W6bF9NJ9xMgb7yR1t/wuaI12XEnW1tt7n/\nCCDmWssi0cW2RI+Kd3EiteBvQONBRaWK7QWMvodVvawkVjP2s7oEEum5Xsit\n/s6WM6sLP50ISEcqT0UZmEjRkb74trCsCYCtfpEkLOyPjrnCj19iw2assbfS\niCBSEhYsXcdraEpnkD2Jq8rgb731BtuPsesadgJBf91mFkCD8Fjbuat0m0VF\n4tiikQaxMUnexdKG/fq7Km4dPRM+pilNovE2+AscHt5sda8bVbji3iJO8oPm\nlqrypDh3aeBevBGRci0SDbLoCya2fMRQzqVAPWrh83T6vlog2Pm/Ac1r0+kG\nrF3w\r\n=InVm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6EPnUtArqSX2mowUtmn1K2gXfeijCGIfVZK66RI4OrAIhAKXQkxWIuftrJVAZQ49mPRiUWAOqwwZt2dKT01lDt/6J"}]},"maintainers":[{"name":"alexaandrov","email":"alexaandrov@gmail.com"}],"_npmUser":{"name":"alexaandrov","email":"alexaandrov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-rest-proxy_0.4.7_1580716534129_0.5154978983458904"},"_hasShrinkwrap":false},"0.4.9":{"name":"@alexaandrov/graphql-rest-proxy","description":"Turn your REST API into GraphQL - A Proxy Server that pipes request from GraphQL to REST with GraphQL DSL, performant nested children, mutations, input types, and more.","version":"0.4.9","license":"MIT","bin":{"graphql-rest-proxy":"dist-node/index.bin.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["cli-app","expressjs","graphql","graphql-server","javascript","proxy","rest","rest-api","typescript"],"repository":{"type":"git","url":"git@github.com:acro5piano/graphql-rest-proxy"},"dependencies":{"body-parser":"^1.18.3","chalk":"^2.4.2","commander":"^2.19.0","cors":"^2.8.5","express":"^4.16.4","graphql":"^14.1.1","graphql-tag":"^2.10.1","request":"^2.88.0","request-promise":"^4.2.4","uuid":"^3.3.2","yargs":"^13.0.0-candidate.0"},"devDependencies":{"@pika/pack":"^0.3.5","@pika/plugin-build-node":"^0.3.14","@pika/plugin-simple-bin":"^0.3.14","@pika/plugin-ts-standard-pkg":"^0.3.14","@types/body-parser":"^1.17.0","@types/chalk":"^2.2.0","@types/express":"^4.16.1","@types/get-port":"^4.0.1","@types/graphql":"^14.0.7","@types/jest":"^24.0.11","@types/node":"^11.11.4","@types/request":"^2.48.1","@types/request-promise":"^4.1.42","@types/supertest":"^2.0.7","@types/uuid":"^3.4.4","codecov":"^3.2.0","cross-env":"^5.2.0","get-port":"^4.2.0","jest":"^24.5.0","nodemon":"^1.18.10","npm-run-all":"^4.1.5","prettier":"^1.16.4","supertest":"^4.0.2","ts-jest":"^24.0.0","ts-node":"^8.0.3","tsconfig-paths":"^3.8.0","typescript":"^3.3.4000"},"licenseText":"MIT License\n\nCopyright (c) 2019 Kay Gosho\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@alexaandrov/graphql-rest-proxy@0.4.9","dist":{"shasum":"bf42ea9ee1d081ee3190ac702716fe54859c6dc7","integrity":"sha512-E//grXMQ6pbj+m+NKvJt/MeZ8nTV7zKVckBrRC3SJfuC+A23xbdDO5tlgtMOCneR1j4kuX5yo4czFTpV3HpIlg==","tarball":"https://registry.npmjs.org/@alexaandrov/graphql-rest-proxy/-/graphql-rest-proxy-0.4.9.tgz","fileCount":87,"unpackedSize":89314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeN+5mCRA9TVsSAnZWagAADJkQAKTWFDlFo8s1DlwaB7Gv\nnJthm9DHG/DmKsNHXZZNqfgyhAzvRFt8m1SxjkXxucC2SHrOLJqVVSRDzmDp\nvuHvc9mouW3jCiRwAtl2m8aFeKWiB0R0671cx6CxAZDlcvNdLyQcJrCKpauI\ncVAR5+AIUGzn7Gh+1BjVE9xPHi0qf5Zye9V71G7ph51sJ5XAM9k1++HbEqoD\nB5a/C0LrHp1uAkmtSTiZAoRXByc0oRnJ9HXhzK7Zu2MoWsqn14KSqVIhXSSt\nMCvFbNKF1eJ8JYjI663MPsNVl/V/+GyEXDfRaPxMXvwGwlFKgRyYe5srVVwc\nyCi+wYIIxD8BAAwmfzRF/iDq/BVDn5Z6joncKdYIIEFJmpCdW1JjnZg1qegg\ncNYJR67wdbSefOuZkkd7vOC+YTr16g8Deg6JNkWpYlT/qYZDTgDhp28ZFCtv\nnDW8oNydIaf15VWcg9Q12Jr9wUIaWA5698hoPiR6OKsakrc5CzF68Z88B0YR\nzV/QhDUXlFWoe0kKGV4xGB4xMpArB4fqVShb806IA5wt5Hc06nGyBTFjbuun\nz4HXosCWUAxV6Y0+5NtJB7gXHrtxaFlpXqXXFbj42i6upKaTp4CB5FlVWuLG\ndoZVp4676+OqCTVZOtookiiOLNBIgU0wfYKFkX+DUtfWZGuNfsCibSvm7/6h\noH41\r\n=8FgD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8r1qAQw+tJo4RScYN93C4LrtsW80iUGUvqE46Myi56AiA6RW3Dqkgzt/m9CGIQ5fo/E/cm6Nmzc7VIi5GG1WPl0g=="}]},"maintainers":[{"name":"alexaandrov","email":"alexaandrov@gmail.com"}],"_npmUser":{"name":"alexaandrov","email":"alexaandrov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-rest-proxy_0.4.9_1580723814443_0.3827973667879059"},"_hasShrinkwrap":false},"0.4.10":{"name":"@alexaandrov/graphql-rest-proxy","description":"Turn your REST API into GraphQL - A Proxy Server that pipes request from GraphQL to REST with GraphQL DSL, performant nested children, mutations, input types, and more.","version":"0.4.10","license":"MIT","bin":{"graphql-rest-proxy":"dist-node/index.bin.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["cli-app","expressjs","graphql","graphql-server","javascript","proxy","rest","rest-api","typescript"],"repository":{"type":"git","url":"git@github.com:acro5piano/graphql-rest-proxy"},"dependencies":{"body-parser":"^1.18.3","chalk":"^2.4.2","commander":"^2.19.0","cors":"^2.8.5","express":"^4.16.4","graphql":"^14.1.1","graphql-tag":"^2.10.1","request":"^2.88.0","request-promise":"^4.2.4","uuid":"^3.3.2","yargs":"^13.0.0-candidate.0"},"devDependencies":{"@pika/pack":"^0.3.5","@pika/plugin-build-node":"^0.3.14","@pika/plugin-simple-bin":"^0.3.14","@pika/plugin-ts-standard-pkg":"^0.3.14","@types/body-parser":"^1.17.0","@types/chalk":"^2.2.0","@types/express":"^4.16.1","@types/get-port":"^4.0.1","@types/graphql":"^14.0.7","@types/jest":"^24.0.11","@types/node":"^11.11.4","@types/request":"^2.48.1","@types/request-promise":"^4.1.42","@types/supertest":"^2.0.7","@types/uuid":"^3.4.4","codecov":"^3.2.0","cross-env":"^5.2.0","get-port":"^4.2.0","jest":"^24.5.0","nodemon":"^1.18.10","npm-run-all":"^4.1.5","prettier":"^1.16.4","supertest":"^4.0.2","ts-jest":"^24.0.0","ts-node":"^8.0.3","tsconfig-paths":"^3.8.0","typescript":"^3.3.4000"},"licenseText":"MIT License\n\nCopyright (c) 2019 Kay Gosho\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@alexaandrov/graphql-rest-proxy@0.4.10","dist":{"shasum":"2fa11237a4f70c0fcc23dd859d0a88216e80787f","integrity":"sha512-a/2BpAQExZVKZ4Txsz+QB4Qj72b5Nkv/fA7VoEvRC4YyAkU2GhlGfXglXvf+SuArW3k8nXnH/UYuuU+i+yFeOg==","tarball":"https://registry.npmjs.org/@alexaandrov/graphql-rest-proxy/-/graphql-rest-proxy-0.4.10.tgz","fileCount":87,"unpackedSize":89289,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOA4qCRA9TVsSAnZWagAAGgAP/23R5guNn/5wetdjZA84\ngNj3xr+2G9mD2DlixEzWAIusFIGMBDyeO/XZBHcQhlCvP3p6xRZGnWAct3Ke\nlBdMSqVZq+ZheR43Hlc0jnAHlVFOjpyA1VHjY9j0j789fIH5kjU/Xpu4baDE\nVCGfhtCnHJTp0K0vyw1wY51f6q2YUG65Kncv95pS2IlZwb7DyB4JsTA2tc6i\ncS2psXoJQNA3YB0A0VwE2lN0c8XpS5Ite5VYsO8vQ1dPwZIr9P+0zlj9736d\nw9ZCsTnxHYVNCk7QSVF/pmnzYzfiaIvPavnJUIjo+VrJX16SXtvnPIVs3uQi\nyNSX+4117VQuPOOLDRPvwEzav4sWCi+SbahNbByhVtdTI95KZoQCfgwfaWeI\nMFvo6fKK4ajicDS9IfXorNYUWFtOE8zPmGZFQizTXM+VP1vv6EHA9ziQx/qt\nHb3LXNx1Hgc5AJ7c6xhjzHvhgHOVw3yIGm/8Omq4aO2UcFEMB3Rw5HhTcuzT\n8FtTcVU7dnHRspLwXn2kEr+sWr7Z+kTE0XcsL8Z0XJFqzuBysS25/m/2ifCj\nxnPVOiQI03CVPlv3+pNcUgct7c6PTXRBGyyajvfVcEznzzm1onumMLsyc3Fc\nwkE3dxGiSg8D9bW9mqQWoTBfsugoU5MFM83f62aUjpxe2kgqoYNGxZ3cu59D\nfzdY\r\n=7UGE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsuhWFz3XIolb58IKHA68lU4h2l1AdKs8s2HbBhMDz2QIhAPxO2Inu+FD3nYkTVzta7plLP+z8/jlX7ifzLbPeh4Gu"}]},"maintainers":[{"name":"alexaandrov","email":"alexaandrov@gmail.com"}],"_npmUser":{"name":"alexaandrov","email":"alexaandrov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-rest-proxy_0.4.10_1580731945879_0.7840729376443809"},"_hasShrinkwrap":false},"0.4.11":{"name":"@alexaandrov/graphql-rest-proxy","description":"Turn your REST API into GraphQL - A Proxy Server that pipes request from GraphQL to REST with GraphQL DSL, performant nested children, mutations, input types, and more.","version":"0.4.11","license":"MIT","bin":{"graphql-rest-proxy":"dist-node/index.bin.js"},"source":"dist-src/index.js","types":"dist-types/index.d.ts","main":"dist-node/index.js","pika":true,"sideEffects":false,"keywords":["cli-app","expressjs","graphql","graphql-server","javascript","proxy","rest","rest-api","typescript"],"repository":{"type":"git","url":"git@github.com:acro5piano/graphql-rest-proxy"},"dependencies":{"body-parser":"^1.18.3","chalk":"^2.4.2","commander":"^2.19.0","cors":"^2.8.5","express":"^4.16.4","graphql":"^14.1.1","graphql-tag":"^2.10.1","request":"^2.88.0","request-promise":"^4.2.4","uuid":"^3.3.2","yargs":"^13.0.0-candidate.0"},"devDependencies":{"@pika/pack":"^0.3.5","@pika/plugin-build-node":"^0.3.14","@pika/plugin-simple-bin":"^0.3.14","@pika/plugin-ts-standard-pkg":"^0.3.14","@types/body-parser":"^1.17.0","@types/chalk":"^2.2.0","@types/express":"^4.16.1","@types/get-port":"^4.0.1","@types/graphql":"^14.0.7","@types/jest":"^24.0.11","@types/node":"^11.11.4","@types/request":"^2.48.1","@types/request-promise":"^4.1.42","@types/supertest":"^2.0.7","@types/uuid":"^3.4.4","codecov":"^3.2.0","cross-env":"^5.2.0","get-port":"^4.2.0","jest":"^24.5.0","nodemon":"^1.18.10","npm-run-all":"^4.1.5","prettier":"^1.16.4","supertest":"^4.0.2","ts-jest":"^24.0.0","ts-node":"^8.0.3","tsconfig-paths":"^3.8.0","typescript":"^3.3.4000"},"licenseText":"MIT License\n\nCopyright (c) 2019 Kay Gosho\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@alexaandrov/graphql-rest-proxy@0.4.11","dist":{"shasum":"d1e1ac6bdc35340f47bb5934342b79bfdcbb6303","integrity":"sha512-ruNtjIGEnnCpVXuVGVzzvEhueS+2a96UCcSMo5bvbsDaXyizHS0tjKYciy19tWQw5aBELlIzSyQA67K6oEQevw==","tarball":"https://registry.npmjs.org/@alexaandrov/graphql-rest-proxy/-/graphql-rest-proxy-0.4.11.tgz","fileCount":87,"unpackedSize":89441,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOBJ/CRA9TVsSAnZWagAA5yIQAJPMtimk6dbLMpbHr9is\npVCZvR9nc++jBW/RJlvzAjsizYLCFkfEGZZQpGn0OVMYypNHMJhgPVki0OyF\nIBEU3J6KvpbWelJfr4iMvv5bbaHGtXYiK5dF80ts2Tku/Z1srj3Se/yrDc40\nqdHLqL/le8CBQJheYJLKm3Wmru01hCx0AH3ntKk4bzsBAqgQQJ9P/E3sVPd/\nG9F8KOK1RQpMyc1KRYwChfhr6w/Sb1vrK9N9LKZNAVYVtt0PnZJx8ev4LeM9\nOkho45Wj7E+1iSycg4X2H7E/tw8AMcdw/WLSNt0mAeFtU2drCHgvmqTh4Doo\nzum7/ADYJHPgtO/SkBgaqjO6eih+D2pQlc9tgNC1GYheBzJntHHc/5XM+KJa\n05VEaxCO26vtRiXnerMkz1Md15uCUhMCIjJAoGvmacq9e+y3RhEcNGju1vsI\nRMDaZjJhnkwV29FEcWnztx0IRo3UDRbfJx/TBA5AiMgKa8ZJVWpI4IKUW9Pq\n7cBzKhhB51mJxaDIn1JLSY/IE5TQkLNklG+RNP7+2Mp8KR4RfFG8YViaGBsd\nKK6f5RhzxyK8B+cbvGK/MAa4UWFDE0V4pV4/a2+g9dSb7wYvcY6nzBlZOz2R\nuPFJJynbcn+qL69o45qWajFtYe2HiGm/I4s0cDI1byFxaY+prOLJzWU+G3Uu\nZWrE\r\n=LTlr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH2/itSI0RqsDLkRJzFuy9yuPF3ILwK4Fu1LP6mHmOx6AiBnW0FdcVVzwP5uNSqmChefdc1vTgEcpDu12z2hskSAbQ=="}]},"maintainers":[{"name":"alexaandrov","email":"alexaandrov@gmail.com"}],"_npmUser":{"name":"alexaandrov","email":"alexaandrov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-rest-proxy_0.4.11_1580733054625_0.5840641034245038"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-03T07:23:18.924Z","0.4.5":"2020-02-03T07:23:19.077Z","modified":"2022-04-04T12:38:56.284Z","0.4.6":"2020-02-03T07:25:40.662Z","0.4.7":"2020-02-03T07:55:34.260Z","0.4.9":"2020-02-03T09:56:54.578Z","0.4.10":"2020-02-03T12:12:26.030Z","0.4.11":"2020-02-03T12:30:54.788Z"},"maintainers":[{"name":"alexaandrov","email":"alexaandrov@gmail.com"}],"description":"Turn your REST API into GraphQL - A Proxy Server that pipes request from GraphQL to REST with GraphQL DSL, performant nested children, mutations, input types, and more.","keywords":["cli-app","expressjs","graphql","graphql-server","javascript","proxy","rest","rest-api","typescript"],"repository":{"type":"git","url":"git@github.com:acro5piano/graphql-rest-proxy"},"license":"MIT","readme":"[![npm version](https://badge.fury.io/js/graphql-rest-proxy.svg)](https://badge.fury.io/js/graphql-rest-proxy)\n[![CircleCI](https://circleci.com/gh/acro5piano/graphql-rest-proxy.svg?style=svg)](https://circleci.com/gh/acro5piano/graphql-rest-proxy)\n[![codecov](https://codecov.io/gh/acro5piano/graphql-rest-proxy/branch/master/graph/badge.svg)](https://codecov.io/gh/acro5piano/graphql-rest-proxy)\n\n![image](images/logo.png)\n\n# graphql-rest-proxy\n\nConvert your REST server to GraphQL server.\n\n# Install\n\n```sh\nnpm -g install graphql-rest-proxy\n```\n\nOr if you use Yarn:\n\n```sh\nyarn global add graphql-rest-proxy\n```\n\n# Why\n\nWe all know GraphQL is great, so you want to move from REST API to GraphQL.\n\nHowever, it requires a lot of effort to replace your current REST API with a brand new GraphQL server.\n\n`graphql-rest-proxy` comes in to address this issue. It proxies GraphQL to REST API according to the defined schema.\n\n![image](images/how-it-works.png)\n\n# Getting Started\n\n**STEP 1. Define your schema.**\n\n`schema.graphql`\n\n```graphql\ntype User {\n  id: Int\n  name: String\n  isActive: Boolean\n}\n\ntype Query {\n  getUser: User @proxy(get: \"https://my-rest-api.com/user\")\n}\n```\n\n**STEP 2. Run your proxy server.**\n\n```sh\ngraphql-rest-proxy schema.graphql\n\n# => graphql-rest-proxy is running on http://localhost:5252\n```\n\n**STEP 3. Request!**\n\n```graphql\ncurl -XPOST -H 'Content-Type: application/json' \\\n    -d '{ \"query\": \"{ getUser { id name isActive } }\" }' \\\n    http://localhost:5252/graphql\n```\n\nIt will return like this:\n\n```json\n{\n  \"data\": {\n    \"getUser\": {\n      \"id\": 1,\n      \"name\": \"Tom\",\n      \"isActive\": false\n    }\n  }\n}\n```\n\n# Examples\n\n**Basic Query Proxy**\n\n```graphql\ntype User {\n  id: Int\n  name: String\n}\n\ntype Query {\n  getUser: User @proxy(get: \"https://my-rest-api.com/user\")\n  getUsers: [User] @proxy(get: \"https://my-rest-api.com/users\")\n}\n```\n\n**Query with Parameters**\n\nYou can refer the id of query args by `$id`.\n\n```graphql\ntype User {\n  id: Int\n  name: String\n}\n\ntype Query {\n  getUserById(id: Int!): User @proxy(get: \"https://my-rest-api.com/users/$id\")\n}\n```\n\n**Mutation with Input Parameters**\n\nMutation forward `variables` to the REST API.\n\n```graphql\ntype UserInput {\n  name: String!\n}\n\ntype User {\n  id: Int\n  name: String\n}\n\ntype Mutation {\n  createUser(user: UserInput!): User @proxy(post: \"https://my-rest-api.com/users\")\n  updateUser(id: Int!, user: UserInput!): User @proxy(patch: \"https://my-rest-api.com/users/$id\")\n}\n```\n\nRequest example:\n\n```javascript\nfetch('http://localhost:5252/graphql', {\n  method: 'patch',\n  headers: {\n    'Content-Type': 'application/json',\n  },\n  body: JSON.stringify({\n    query: gql`\n      mutation UpdateUser($id: Int!, $user: UserInput!) {\n        updateUser(id: $id, user: $user) {\n          id\n          name\n        }\n      }\n    `,\n    variables: {\n      id: 1,\n      user: {\n        name: 'acro5piano',\n      },\n    },\n  }),\n})\n```\n\n**Nested Objects**\n\nYou can refer the id of parent object by `$id`.\n\n```graphql\ntype Post {\n  id: Int\n  title: String\n}\n\ntype User {\n  id: Int\n  name: String\n  posts: [Post] @proxy(get: \"https://my-rest-api.com/users/$id/posts\")\n}\n\ntype Query {\n  getUser: User @proxy(get: \"https://my-rest-api.com/user\")\n}\n```\n\n**Specify base url**\n\nYou can set base url to reduce verbosity:\n\n```sh\ngraphql-rest-proxy --baseUrl https://my-rest-api.com schema.graphql\n```\n\n```graphql\ntype Query {\n  getUser: User @proxy(get: \"/user\")\n}\n```\n\n# Configuration\n\nCLI options are:\n\n```\nUsage: graphql-rest-proxy <command> [options]\n\nCommands:\n  graphql-rest-proxy <file>        Start graphql-rest-proxy server.          [default]\n  graphql-rest-proxy print <file>  Print GraphQL schema\n\nOptions:\n  --version      Show version number                                   [boolean]\n  -c, --config   Specify config file\n  -p, --port     Specify port\n  -b, --baseUrl  Specify proxy base url\n  -h, --help     Show help                                             [boolean]\n```\n\nYou can also set a config file.\n\n`proxy.config.js`\n\n```javascript\nmodule.exports = {\n  baseUrl: 'https://myapi.com',\n  port: 3000,\n}\n```\n\nAnd run with the configuration:\n\n```sh\ngraphql-rest-proxy --config proxy.config.js schema.graphql\n```\n\n# Notes\n\n**Request as less as possible**\n\n`graphql-rest-proxy` does not request if proxy response includes child object. This means you can reduce API call if you includes child object.\n\nFor example, if the schema is like this:\n\n```graphql\ntype Post {\n  id: Int\n  title: String\n}\n\ntype User {\n  id: Int\n  name: String\n  posts: [Post] @proxy(get: \"https://my-rest-api.com/users/$id/posts\")\n}\n\ntype Query {\n  getUser: User @proxy(get: \"https://my-rest-api.com/user\")\n}\n```\n\nAnd REST API returns like this:\n\n```sh\ncurl https://my-rest-api.com/user\n```\n\n```json\n{\n  \"id\": 1,\n  \"name\": \"acro5piano\",\n  \"posts\": {\n    \"id\": 1,\n    \"title\": \"graphql-rest-proxy\"\n  }\n}\n```\n\nIn this case, `posts` is embbed in response, so `graphql-rest-proxy` doesn't request to `https://my-rest-api.com/users/1/posts`.\n\n# Development Status\n\nStill in Beta. If you have any suggestions or feature requests, feel free to open new issues or Pull Requests!\n\nTODO:\n\n- [ ] More type support\n  - [ ] Fragment\n  - [ ] Scalar\n- [ ] Refactoring\n- [ ] Logging\n","readmeFilename":"README.md"}