{"_id":"graphql-fields","_rev":"19-57151b94cea3b8d2ee1b26bfa7d06539","name":"graphql-fields","description":"Turns GraphQLResolveInfo into a map of the requested fields","dist-tags":{"latest":"2.0.3"},"versions":{"1.0.0":{"name":"graphql-fields","version":"1.0.0","description":"Turns GraphQLResolveInfo into a map of the requested fields","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/robrichard/graphql-fields.git"},"keywords":["graphql","graphql-js","graphqlresolveinfo","fields","schema","ast"],"author":{"name":"Rob Richard"},"license":"MIT","bugs":{"url":"https://github.com/robrichard/graphql-fields/issues"},"homepage":"https://github.com/robrichard/graphql-fields#readme","devDependencies":{"graphql":"^0.4.16","mocha":"^2.4.5"},"gitHead":"a2daa6bc7ef51cf5244834cf43d827e5081aa691","_id":"graphql-fields@1.0.0","_shasum":"7afc6513304aca52bfd86f520963ffd66b1a73e6","_from":".","_npmVersion":"2.14.13","_nodeVersion":"4.2.3","_npmUser":{"name":"robrichard","email":"rob@robrichard.net"},"maintainers":[{"name":"robrichard","email":"rob@robrichard.net"}],"dist":{"shasum":"7afc6513304aca52bfd86f520963ffd66b1a73e6","tarball":"https://registry.npmjs.org/graphql-fields/-/graphql-fields-1.0.0.tgz","integrity":"sha512-YuF7zf2m0NEb8pc3RLOFElOSw2u3kwk1/f4BO+iXuMm/j33JfcbmgWv2a+z/Q1RgUxMcu2f9h6eGMfsuWIRGTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAe6GlNEMbBGmj9AX9kWy9a4AVVfWq6cMdxjbPZorFRzAiEAw5+/iXjggeXjRFFL1BvwXv0qm0AOFxZjSIStnNX3QcY="}]},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/graphql-fields-1.0.0.tgz_1454860737232_0.7331365393474698"},"directories":{}},"1.0.1":{"name":"graphql-fields","version":"1.0.1","description":"Turns GraphQLResolveInfo into a map of the requested fields","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/robrichard/graphql-fields.git"},"keywords":["graphql","graphql-js","graphqlresolveinfo","fields","schema","ast"],"author":{"name":"Rob Richard"},"license":"MIT","bugs":{"url":"https://github.com/robrichard/graphql-fields/issues"},"homepage":"https://github.com/robrichard/graphql-fields#readme","devDependencies":{"graphql":"^0.6.2","mocha":"^2.4.5"},"gitHead":"af6bb4caa45f5f493f25e351ccbe45b80285b437","_id":"graphql-fields@1.0.1","_shasum":"bf1e4f1e5c346b6572085ae188565888f44ec278","_from":".","_npmVersion":"2.15.6","_nodeVersion":"4.2.3","_npmUser":{"name":"robrichard","email":"rob@robrichard.net"},"maintainers":[{"name":"robrichard","email":"rob@robrichard.net"}],"dist":{"shasum":"bf1e4f1e5c346b6572085ae188565888f44ec278","tarball":"https://registry.npmjs.org/graphql-fields/-/graphql-fields-1.0.1.tgz","integrity":"sha512-ExRXv3laAb/atavrdQNE+MBnBDV7Op54Tt5kdGhS00LBjRxW02Jnr7v+A+XbhWN8l+3DBQmNGxAmSiQjNZhHsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFWQPF/AVS4A1534SC7CvUW9N3hEzOrLrQJGGIQWvC62AiAd8IPNdWnZ7C+Wyjn7mhOANP6nGoGFDxutYHRd0RfogQ=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/graphql-fields-1.0.1.tgz_1469976011169_0.3808719329535961"},"directories":{}},"1.0.2":{"name":"graphql-fields","version":"1.0.2","description":"Turns GraphQLResolveInfo into a map of the requested fields","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/robrichard/graphql-fields.git"},"keywords":["graphql","graphql-js","graphqlresolveinfo","fields","schema","ast"],"author":{"name":"Rob Richard"},"license":"MIT","bugs":{"url":"https://github.com/robrichard/graphql-fields/issues"},"homepage":"https://github.com/robrichard/graphql-fields#readme","devDependencies":{"graphql":"^0.6.2","mocha":"^2.4.5"},"gitHead":"0ed79e290c027aea1d5d50e1b04d084770e22cbb","_id":"graphql-fields@1.0.2","_shasum":"099ee1d4445b42d0f47e06d622acebb33abc6cce","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"robrichard","email":"rob@robrichard.net"},"maintainers":[{"name":"robrichard","email":"rob@robrichard.net"}],"dist":{"shasum":"099ee1d4445b42d0f47e06d622acebb33abc6cce","tarball":"https://registry.npmjs.org/graphql-fields/-/graphql-fields-1.0.2.tgz","integrity":"sha512-6gSnI3k12hOhYbNwgnH5Z/LDrRJ5yvA4hbI4wK9NlWzr8uMwZqcbZKZUNlkurnFd1qKbG4alEr8HywGmGAKCmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEggnIeLcyU3QaDf3s81ln9IcpQhNDps26e6D2Dey1JIAiAGbBYTP2D3NAaWCINQ+ib3Wn1c+hZiu8anvdP9oPJqew=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/graphql-fields-1.0.2.tgz_1485216648779_0.9338889138307422"},"directories":{}},"1.1.0":{"name":"graphql-fields","version":"1.1.0","description":"Turns GraphQLResolveInfo into a map of the requested fields","main":"build/index.js","scripts":{"test":"mocha","build":"babel index.js --out-dir build","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/robrichard/graphql-fields.git"},"keywords":["graphql","graphql-js","graphqlresolveinfo","fields","schema","ast"],"files":["build/*"],"author":{"name":"Rob Richard"},"license":"MIT","bugs":{"url":"https://github.com/robrichard/graphql-fields/issues"},"homepage":"https://github.com/robrichard/graphql-fields#readme","devDependencies":{"babel-cli":"^6.26.0","babel-plugin-transform-object-assign":"^6.22.0","babel-preset-env":"^1.7.0","graphql":"^0.6.2","mocha":"^2.4.5"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2016 Rob Richard\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":"graphql-fields@1.1.0","dist":{"shasum":"a2466d1c414554dab80c0f7777d6ba9a0e0f75b4","tarball":"https://registry.npmjs.org/graphql-fields/-/graphql-fields-1.1.0.tgz","fileCount":6,"unpackedSize":5761,"integrity":"sha512-mxKRZpoWI9jgIlmwWWYJfBNrXB1iQhIR0raMWl7Dy9vXxHRZEfdz5Nch3SxPgbpEJGRNYddY6KfYs3mV6+j75w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOHoqsJ7Ks5N+sJTv1+DH3hcJXRMW66J/C1lv7VmJSZQIgFeipNKKw1gKsXu8dhE3Zx/brZ6eNJxlFLdYoSM2CBCI="}]},"maintainers":[{"name":"robrichard","email":"rob@robrichard.net"}],"_npmUser":{"name":"robrichard","email":"rob@robrichard.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-fields_1.1.0_1530642436333_0.8938220539479473"},"_hasShrinkwrap":false},"1.2.0":{"name":"graphql-fields","version":"1.2.0","description":"Turns GraphQLResolveInfo into a map of the requested fields","main":"build/index.js","scripts":{"test":"mocha","build":"babel index.js --out-dir build","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/robrichard/graphql-fields.git"},"keywords":["graphql","graphql-js","graphqlresolveinfo","fields","schema","ast"],"author":{"name":"Rob Richard"},"license":"MIT","bugs":{"url":"https://github.com/robrichard/graphql-fields/issues"},"homepage":"https://github.com/robrichard/graphql-fields#readme","devDependencies":{"babel-cli":"^6.26.0","babel-plugin-transform-object-assign":"^6.22.0","babel-preset-env":"^1.7.0","graphql":"^14.0.2","mocha":"^2.4.5"},"gitHead":"74dd8517dd4cf39c874b19f864e62fdadf2a61b5","_id":"graphql-fields@1.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"robrichard","email":"rob@robrichard.net"},"dist":{"integrity":"sha512-unsEFEMTiZSNrc4wMxFIEPQmLAm1iKxx7Cf547UM2Qd5eqZyug3FAIeLaTntjuPaLA79twNydkbobLoBrweEoQ==","shasum":"0ac6dad86bbf2176273ebf39ef05ddd12fd300da","tarball":"https://registry.npmjs.org/graphql-fields/-/graphql-fields-1.2.0.tgz","fileCount":4,"unpackedSize":7543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbvhsfCRA9TVsSAnZWagAA+xEP/RtEtMyIEeWTJOnBpIk3\n/Xj5m+IKtCSq9UlwJLrdYgp+Xby5FKQ/TqHGfKblz5+WNprj8rBVqayt1lWy\nckli9bxUAoZs1BvyCez3SiY078lTs/tCovITNjGXNlGxrmxm5tSHlbKEzjz/\ntC7emRoVcafKprylW6Am42b8nMk8Rnj6VRx8ijzHyEm2OIs9BW7vXuZ6WjNc\niqrve2EgnvSxeP/1j3vt1cbUD/J2bNBsZqMYrhvA9JvRPgVZxolOY9sVUb0p\nsGSW7kxPCR4VmUKX1IaTQgP9RrTd3S466qRliL7h2tl2Ik9+KzDM2uk+JoxH\nAs1g/6vL+x2/bwk3NXwnINLam0HGVmQnc0GOYG9HYWHF/FFQmC3KrzSgVohJ\njUc87cekeRHjrZHs3VIszNKeQhvo+9IK5RFNYJ0MZaAb9AMqZ4Z+6QWALz8f\nEo2RPA3DsjldBBqAV/MESKiTmGHG7UnnJ6xl4+RS1qxlRb6znNh1dE0r2zuM\nL2RdhkRCJ8mEGDxoZ22qr6c4cv/8NK7Rh5jKlxvh7xh24wdi6N1rTW6xJwzf\nBltrEZ+y9bkeSVEomEUU8P6xe4RTDH0uRteOK4HwT0PJtSw3LT4fSQToAS7s\nlCNHJFaG/94OWRgWrO/xtLtJ+NVKeVZb0bMB2tEXzj0XsasxjbclvatVA9tK\nWvj9\r\n=rDxx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDl8ZiqKmI/D0JJfjrXVFy5ZR/fG5nE/oPRe/wdSplt6AiEAjKe2ODxkCDSs6E13uo1/xyiNcSEPaHe+2HfyzkF9TQU="}]},"maintainers":[{"name":"robrichard","email":"rob@robrichard.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-fields_1.2.0_1539185439126_0.48363124476805885"},"_hasShrinkwrap":false},"1.2.1":{"name":"graphql-fields","version":"1.2.1","description":"Turns GraphQLResolveInfo into a map of the requested fields","main":"build/index.js","scripts":{"test":"mocha","build":"babel index.js --out-dir build","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/robrichard/graphql-fields.git"},"keywords":["graphql","graphql-js","graphqlresolveinfo","fields","schema","ast"],"author":{"name":"Rob Richard"},"license":"MIT","bugs":{"url":"https://github.com/robrichard/graphql-fields/issues"},"homepage":"https://github.com/robrichard/graphql-fields#readme","devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-transform-object-assign":"^7.0.0","@babel/preset-env":"^7.1.0","graphql":"^14.0.2","mocha":"^5.2.0"},"gitHead":"9db837052d21604e81f85b539121e50e78b302b5","_id":"graphql-fields@1.2.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"robrichard","email":"rob@robrichard.net"},"dist":{"integrity":"sha512-ufg/dxb78IjQUblNfiaEMkZWD1CwcZjdK0nTEW0dBQyNArxKZI7N+zohZdIdqVJcihPWJod1yymx4NM+1bZjTw==","shasum":"3777112af0bd6f55cc3c7b8f6d7748ab7a1b23bb","tarball":"https://registry.npmjs.org/graphql-fields/-/graphql-fields-1.2.1.tgz","fileCount":5,"unpackedSize":7755,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwIg5CRA9TVsSAnZWagAAWgIP/ifdbzbWmuHgXYk4v7se\nNKrYKipvjejxk3FSsJcmcGaRYgTb2bWhqySWCyYPyIejsjno4ZouT9ztCCa7\nfnrC50jgeYZ0IKHrCg4Sm/nknsPu9BSE5xWUxEyQS6VcHjlTDEpGPdIPoIwq\ndnon4fa3tcgClVL5tIOzf7BlWsiWsiBXM4Mt7HQOGYjYLZRcAcboSnwkSf96\nSQWkZZT1Y8CehG3g7wq5ABuJDa6/JWPL0+/clH/DU3ufork2/JIVXLWmjFqm\niGykr+VXq0XUGit4Tectk4t3907MNG7zb3Xv7/sM0cqb8oP4pRQhAy9aKa3k\nsQw4B2nI68GYH4fonvxP1X5h3Y5FsdQoOXbBi4eLsjXVRT5qgdu7nVm4rVML\naYcobX1aKUZ/FpsU73poMLgdYLcEYpfefVUCioYJXXVOenonUK7XFG2nEMW9\nOF1AFd5Svnz3amX+d904u0V01hAKlnyeoWeESGzBjuiWsbPjQzcoGTu4Cqd2\n9K4FNifZp6eOKdWFprGH8FSGw247BkmsrKzOdEcuNx/WXNk+SibfAyubTW6P\n4FY3DMu/JQlePjD+cQkHrS8hsfnO1qGIdgCrESAsI5k/pcwmt/Nbc6OaSQAi\niL0D10gYCv7ZIEezyussu7F9TPYE9y66ZOqSeDOXCT28YZhwFPzXLQbyi7fe\nDxMg\r\n=XZUA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjflCsNlQ63dC9ElemCjO+LDNP5cbIqDndoV+fOw5SCQIhAPkkAaz+RjvX9X8Vwpi6arj6x8U8q+LlPXqx4I24NkxS"}]},"maintainers":[{"name":"robrichard","email":"rob@robrichard.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-fields_1.2.1_1539344441225_0.7397478669083757"},"_hasShrinkwrap":false},"1.3.0":{"name":"graphql-fields","version":"1.3.0","description":"Turns GraphQLResolveInfo into a map of the requested fields","main":"build/index.js","scripts":{"test":"mocha","build":"babel index.js --out-dir build","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/robrichard/graphql-fields.git"},"keywords":["graphql","graphql-js","graphqlresolveinfo","fields","schema","ast"],"author":{"name":"Rob Richard"},"license":"MIT","bugs":{"url":"https://github.com/robrichard/graphql-fields/issues"},"homepage":"https://github.com/robrichard/graphql-fields#readme","devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-transform-object-assign":"^7.0.0","@babel/preset-env":"^7.1.0","graphql":"^14.0.2","mocha":"^5.2.0"},"gitHead":"541a614c3c814ab39da7fc3e256f615c63e613d8","_id":"graphql-fields@1.3.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"robrichard","email":"rob@robrichard.net"},"dist":{"integrity":"sha512-juRLzsYgbcJ/YuwExYObDPXn725YyCiVqxx6JlUm4HI5Ytm2RKp6MScaTVieMKtJI+Z6JmNgzInMTNuw0/DbZg==","shasum":"902ae2fd525eb04ddede7565d447db54dfc56b54","tarball":"https://registry.npmjs.org/graphql-fields/-/graphql-fields-1.3.0.tgz","fileCount":5,"unpackedSize":8327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb7cCiCRA9TVsSAnZWagAAKbUP/jT8YUlyEnSC2Yngzk/D\n/MzmFxWaVl9iEdIO5PqkeM7grl6UPyAiJlXHCWV6/DBspQcyZejOA8KUMdr2\nvshxEeuFV/wBu4Zc3EXb5/eldXcIzwtV4C+W2Qo0NoNNYlcjl1JZmQJRss/1\nXHvuJ4NdLz1RzIBnEGHPc9Os+DIBgaDok+gUJRgmM10OY+RaJJnlMwTEayyl\novAE+vBp1O6q7RhI8yEe/7fF5Kn9/RWpF8dxEgyh+bEkTc67GYRkLxWBeUjy\nTzYBcH5Nc2y6TO4aSYJ8/XogKdT5pVTD90NjId/XsWUH4cralTunotmH4Dv/\nIld+XI8ZDKC6t9TW0HRya6pRF0gSxq2srWim+eUtlBA2MOnfHCkMl3aS55lX\nzkDTesQsVSoXJGJPShd/IV4S0wFByBM6IwcRLhXMLWOA26SSC4Cg8eezvWTg\nDSVGi+0SfyaYHvZ7VqPI0VSQeyG9d6XgTYqbJ9C/y3FeB+FwojTlqeja7+ME\nTMLWaWRY/mNvWje3VrGmS0oY6SY75oKAZvDkH8EEWppSIX1STd8Mjea/f5t0\ntEgnY0LNRORVhXJ2jZDUXhoBEm608m7i8D5NM/lgma+C4HZdsIenxmbJnURe\naSUx4ZFZ0qiw4CUMZ+Xmamg+1EYiCeWjanaCNP8Hk49L2Kp+/b7kBpWTEjIF\n2qpY\r\n=ZdnW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCn9KODG82pvcf0KGefyBCf6i9+7qFVgNJrLVxJW9O7CwIhANQBXFPq7d/kM6Z8wC2VpSy0Y7GklRjjkKkCiB3TA0Wn"}]},"maintainers":[{"name":"robrichard","email":"rob@robrichard.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-fields_1.3.0_1542308001833_0.2251850603101473"},"_hasShrinkwrap":false},"2.0.0":{"name":"graphql-fields","version":"2.0.0","description":"Turns GraphQLResolveInfo into a map of the requested fields","main":"build/index.js","scripts":{"test":"mocha","build":"babel index.js --out-dir build","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/robrichard/graphql-fields.git"},"keywords":["graphql","graphql-js","graphqlresolveinfo","fields","schema","ast"],"author":{"name":"Rob Richard"},"license":"MIT","bugs":{"url":"https://github.com/robrichard/graphql-fields/issues"},"homepage":"https://github.com/robrichard/graphql-fields#readme","devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-transform-object-assign":"^7.0.0","@babel/preset-env":"^7.1.0","graphql":"^14.0.2","mocha":"^5.2.0"},"gitHead":"4a34340a0b8fc453d67e8127b93ec3125ad82e16","_id":"graphql-fields@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"robrichard","email":"rob@robrichard.net"},"dist":{"integrity":"sha512-pxUJl8PjDq44TXuON9f6wH5eiMl8E1CsL3NVDUNTewuaicYbS8OGTmos0gwd0s54tZ/tjhFN7u0pYQFV7ZYSyA==","shasum":"bb8497a81d8d2d57767242d722173bcfb3182a37","tarball":"https://registry.npmjs.org/graphql-fields/-/graphql-fields-2.0.0.tgz","fileCount":5,"unpackedSize":10500,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcABpACRA9TVsSAnZWagAAK+EP/jYFKcvDpGP8qeyYkbV1\n64Z+49qbMUhDHPazS24QwPQqoUzSgi34jzCjag0df6fKM6bhW3oRgtgB95CB\n8yklxBh7D6IMlSXx8atfiZNsxnAykF2Xnu5LpFKl0F62VO1KLuwyBnB8aZbU\nCBEcxTfFu+HOBz1RePc3fxDrSzBLWglhRknnml8QHvs8mA+JtA1+Y9tUU9qo\nH033+RprvwM9KaQQkTAiEfUYTIuC3QQfw1PIhus6zrBK79rHMcHgA0zCHg1Y\nouDL8LvuXJRx792ih2cfMwts/Pjd0DGr8uyhWyHRQ1WnywmnXjAzyeBCJyj0\nDVNJ0Grcaed69QvQpr9juvWUCCtXY+jYwIVotxVng8jOigDLOZnNfhhjiTUw\nlcaz3HwMX3unDI2tgaCzUGvG7fk/jrHrL9FA4V1FF5drsXlKbTdcksFoIj32\nrMG06WkScXZgXr8bK4Oaz22ZtqN+8omz9TdZAfMHCTzKsRDCEAxwx9KPfPL6\neCSRqQxsJ08St+1oCFZjTyIkMjWLJMaD0vkcl6SAM9wa8f4YNSoUaRkAPxlg\n9gaktl01nepk7HOpVlsSCtjad3yBk9Fgus+1VkOpy4p6Zn0mF6qUEy8xnF5z\nkSMCvJGhlo6EtiXw1xYw7K5znrNv8/jidsacYkKDuc28kZxpqqQH72VG5idJ\nxu7Q\r\n=vWEi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNek1anRlVfL3PXGANs4qcrR44qn/dSXyDUMWTY14hyAiEAvGuU371zAn0jqxVhO+Kp9ySqUoFP72qISqTFw7bfv8g="}]},"maintainers":[{"name":"robrichard","email":"rob@robrichard.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-fields_2.0.0_1543510591445_0.6839937017546271"},"_hasShrinkwrap":false},"2.0.1":{"name":"graphql-fields","version":"2.0.1","description":"Turns GraphQLResolveInfo into a map of the requested fields","main":"build/index.js","scripts":{"test":"mocha","build":"babel index.js --out-dir build","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/robrichard/graphql-fields.git"},"keywords":["graphql","graphql-js","graphqlresolveinfo","fields","schema","ast"],"author":{"name":"Rob Richard"},"license":"MIT","bugs":{"url":"https://github.com/robrichard/graphql-fields/issues"},"homepage":"https://github.com/robrichard/graphql-fields#readme","devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-transform-object-assign":"^7.0.0","@babel/preset-env":"^7.1.0","graphql":"^14.0.2","mocha":"^5.2.0"},"gitHead":"fedfa77110b76aed86974c3ddcfd63b290d2306b","_id":"graphql-fields@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"robrichard","email":"rob@robrichard.net"},"dist":{"integrity":"sha512-fImS22uNtx7jeLS8ytuRH6Pb8UYBMgEuKF1ti7F8kCcbhcsYtFu4pxoc5sXGIO9lY6EiLFj9rILyCjyTQVmRag==","shasum":"7cfccb8daf8fa27f10296f75cfb4eb016092685b","tarball":"https://registry.npmjs.org/graphql-fields/-/graphql-fields-2.0.1.tgz","fileCount":5,"unpackedSize":10727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBtWCCRA9TVsSAnZWagAAiw0P/R5vAm5kuAmTXIVBdyLb\nx+xojbRy0kw7zCUgAZIkxrv60p3LQBRTTgekHcLdUUX4tZN98n4sMEPTllP7\nuPhPJBzlzAi3ed0YFoqzjc3JLv54Zs4TeV6SIKZ+gA19QqU0/MbEkfotZdzp\nlnAWa0V/00OdZFuE0MytIaZew5sp5bQHbZ3j3/DYKUB17Dixpx4eGxFlRs2N\nOlxcKxROBYoJM0MPROgmiNzSRktT5/Ql4dUD/gM1AsnuagZBv9dA3rYLcquT\n1nosADoQDOZ2hlnRUYwCeK6qVkq+ZJ+hoGhoUHTWpeJa+IhW3W2K5QpCnubN\nxhEvkV/0SXRr2trQFCqryxBHBCu3g+xN+MLHffKYj4XKZ+XKgOgVlegJoyDU\nRv2Q/zhD8d2lm4vK0LFdFVjWHICt2nEjKrzHP8jAPvGyYJsoILQFWKxFiBHW\nsasDEK7moWKx6zyRxEVyBXJL7Sx3vH3c5fltzEcEP0kaWacvfBUSZuylj8QU\nQ4rXwCfW+GyzQtgxSAOgQtcq2h5dx8XXpdZQXWRLCTem+JLdSlgZWU6XvtGf\nQNW30Q1RtZQFp9B6+k6ReaUxrGoCD5dI+d+cTlRd3p2eJfh7gzcOfa3n/ROa\nWQZ+HmUNjC0PfDEj2KLilEvgYHRVnwTLOyKRjtZda71a5OOlUdUZEWnUbDTD\n3x8U\r\n=RoLt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKF9KX5M5JhtxA7yIeB3D1jcq23T7tifynTdFKEACLVQIgN/DpdyH4b3glqAvT1mhhUuR/5m4KisvHuOGZzwTd91Q="}]},"maintainers":[{"name":"robrichard","email":"rob@robrichard.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-fields_2.0.1_1543951745638_0.5807417664698213"},"_hasShrinkwrap":false},"2.0.2":{"name":"graphql-fields","version":"2.0.2","description":"Turns GraphQLResolveInfo into a map of the requested fields","main":"build/index.js","scripts":{"test":"mocha","build":"babel index.js --out-dir build","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/robrichard/graphql-fields.git"},"keywords":["graphql","graphql-js","graphqlresolveinfo","fields","schema","ast"],"author":{"name":"Rob Richard"},"license":"MIT","bugs":{"url":"https://github.com/robrichard/graphql-fields/issues"},"homepage":"https://github.com/robrichard/graphql-fields#readme","devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-transform-object-assign":"^7.0.0","@babel/preset-env":"^7.1.0","graphql":"^14.0.2","mocha":"^5.2.0"},"gitHead":"445fd35d070514cfc7495f86f86101535fabec17","_id":"graphql-fields@2.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"robrichard","email":"rob@robrichard.net"},"dist":{"integrity":"sha512-6jTj8h9ZWJ2yHtOGsM/c0FfaW2x9jUfOXB22BCrfA7XTlZcg5q8rNG4E1G6S65po8LSscBCn5q4wU5v2z9DAJA==","shasum":"548e30684353df240070c266c8e2cdc3771b8a2f","tarball":"https://registry.npmjs.org/graphql-fields/-/graphql-fields-2.0.2.tgz","fileCount":5,"unpackedSize":11024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJceByTCRA9TVsSAnZWagAAVBIP/1mGUtyUJ7Rs2NgEOy10\nGiNlcMohAJDqrb+wez2QzDjv6em7KPOLOK3SpPEntXALfrUSQMBeFccRBpDY\n5oD+zV5xEzGH+koplEhRCZbt/gw5Bf60EZSM7LZTK2m5UOIppR+vAi+flMx6\nFxJtB0ZQie55MBtvBiJmvPi0K7M59qRdbvo2lRW52yaR5cV1mFvrlFtJUnBE\n5i2DmIbIyEOTzKsvZt53RTbvIo+hX0OBU/MYIjiFgjOshgWWfmmfLeyP3Oqc\nl/ydWcBM5RQ1MPyU3YSKpaP+teuj8xUawswRCzBvqUzYSrzThVvehyYiQZzO\nvAKjUI7H5STpTMmEdboepEumACXxcVBdZVgUQkGG2URu/WSBNxAoonshEzT4\nPzgqG03PbFvk0O5Tl4651pP5TItJ8YpW2nqIfB/b8Tffh1tKtMtXDeiqVQ/B\n1dbjFBm4GCvh6cjr0LfUDGdu2UaWTaxAPP9g3VgUiKCIjzEa8eh1Ac1ZOR6R\n86BNovUstzqjGhpG+pq27zpLomplSOQzq5i2m3nMWEOfd7o5pqyUVRAyhu1L\nZphhCTw4EOQ+PmKj6ng51TAdeWPNkreIvMk7iWqIA4FOCtDiiaknHzEyacvm\n1Mttluzeet0BR+gmeMKZAFqGxvYeaaW4UpkdNTq/WiO+4eLtnhbe5yBx2bVA\nU5Ph\r\n=FzkJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCw4338Rac5DzScd5fRYLmrEl4+E0Di7BGTiJEeQ2cFVAIhAMjGsFXyUj4Dm2EH7a2BBGU/ojdJyTMpeaAJIvOk3pT6"}]},"maintainers":[{"name":"robrichard","email":"rob@robrichard.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-fields_2.0.2_1551375505855_0.2707357736234588"},"_hasShrinkwrap":false},"2.0.3":{"name":"graphql-fields","version":"2.0.3","description":"Turns GraphQLResolveInfo into a map of the requested fields","main":"build/index.js","scripts":{"test":"mocha","build":"babel index.js --out-dir build","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/robrichard/graphql-fields.git"},"keywords":["graphql","graphql-js","graphqlresolveinfo","fields","schema","ast"],"author":{"name":"Rob Richard"},"license":"MIT","bugs":{"url":"https://github.com/robrichard/graphql-fields/issues"},"homepage":"https://github.com/robrichard/graphql-fields#readme","devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-transform-object-assign":"^7.0.0","@babel/preset-env":"^7.1.0","graphql":"^14.0.2","mocha":"^5.2.0"},"gitHead":"562737f6ec63322878ee17dbfc2086a732276618","_id":"graphql-fields@2.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"robrichard","email":"rob@robrichard.net"},"dist":{"integrity":"sha512-x3VE5lUcR4XCOxPIqaO4CE+bTK8u6gVouOdpQX9+EKHr+scqtK5Pp/l8nIGqIpN1TUlkKE6jDCCycm/WtLRAwA==","shasum":"5e68dff7afbb202be4f4f40623e983b22c96ab8f","tarball":"https://registry.npmjs.org/graphql-fields/-/graphql-fields-2.0.3.tgz","fileCount":5,"unpackedSize":11421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfdJICRA9TVsSAnZWagAAjy4P/i192AiCam23CbPMeDfG\ngyKdMklPEphTs7P29apXXFRwhNTHuDT+4QXncaxJsBnzYoHy7VrYqSpVzA/2\nWbIQT9VKjNbOIdI+GCXPgPINBN1C6AW7q3GdKt15PIv9P42ztuL7R/qCm5MP\nUy2II5AtmzGzZ4bRtaquTFVQcPpJZc3YVOUv0go/oJ9eL2GTdwkbiTpwMQ+E\ndOcij0S/HdG3nSPjqJF8I6CSeCkiq/+yIZhAK8zuo12VxKhSfy2Fdj0aE4kB\nPVrBqq1zUhWZ5WIuLWBo+hHn8ySkvp/60JLUORBl8Scq+182ETDJPcjS72uu\n71pBML6hnB4mIuIWxnGq6H7aKAVEeoUua2HtIgP//Ly0gi6MjOODzbJofwVY\nY8Ua3NgrenwuLYdmCyN16qyQgvnSfR0SyeWFVfnZcN5t8INGCQtZNLi9XniE\nDjrL00p6VRndHE5/XuRWF9kGfws1TQ+5Hvlyx1TImIR8x0JNV+fizwA1YaLs\ndCfRcZCvf2c8ZoDmIYwOf/ODRdqJ+uDc0e189bOu5oWGQzyzrnHxskdOCftp\normvRF/owaPPqsClreyHqWc2W32SQNjycyo769OJ/ezwUIBnFV/SZ9FBZTnK\nMW9opueUqSc+XgjfgP556DnhWcsDc7fQ5pH8eMxXwYRyTyoYohFxq7sX3zLM\nCeGa\r\n=PTt9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCy2vSqrKaoXbK6ll/ypuTHdep/Wf8ZNqQ5CyMNk5MFcAIgNlOph5BKKicK1FnAMxYhWvvkEF/v/z3gBow6V3fVats="}]},"maintainers":[{"name":"robrichard","email":"rob@robrichard.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-fields_2.0.3_1551749702946_0.496758125574438"},"_hasShrinkwrap":false}},"readme":"# graphql-fields\nTurns GraphQLResolveInfo into a map of the requested fields. Flattens all fragments and duplicated fields into a neat object to easily see which fields were requested at any level. Takes into account any `@include` or `@skip` directives, excluding fields/fragments which are `@include(if: $false)` or `@skip(if: $true)`.\n\n## Usage\n\nSchema Type definition\n```javascript\nconst graphqlFields = require('graphql-fields');\nconst graphql = require('graphql')\n\nconst UserType = new graphql.GraphQLObjectType({\n    name: 'User',\n    fields: {\n        profile: {type: new graphql.GraphQLObjectType({\n          name: 'Profile',\n          fields: {\n            firstName: {type: graphql.GraphQLString},\n            lastName: {type: graphql.GraphQLString},\n            middleName: {type: graphql.GraphQLString},\n            nickName: {type: graphql.GraphQLString},\n            maidenName: {type: graphql.GraphQLString}\n          }\n        }),\n        email: {type: graphql.GraphQLString},\n        id: {type: graphql.GraphQLID}\n    }\n});\n\nmodule.exports = new GraphQLSchema({\n    query: new GraphQLObjectType({\n        name: 'Query',\n        fields: () =>\n            Object.assign({\n                user: {\n                    type: UserType,\n                    resolve(root, args, context, info) {\n                        console.log(\n                            JSON.stringify(graphqlFields(info), null, 2);\n                        );\n                        ...\n                    }\n                }\n            })\n    })\n})\n```\n\nQuery\n```graphql\n{\n  user {\n    ...A\n    profile {\n      ...B\n      firstName\n    }\n  }\n}\n\nfragment A on User {\n  ...C\n  id,\n  profile {\n    lastName\n  }\n}\n\nFragment B on Profile {\n  firstName\n  nickName @skip(if: true)\n}\n\nFragment C on User {\n  email,\n  profile {\n    middleName\n    maidenName @include(if: false)\n  }\n}\n```\n\nwill log\n```json\n{\n  \"profile\": {\n    \"firstName\": {},\n    \"lastName\": {},\n    \"middleName\": {}\n  },\n  \"email\": {},\n  \"id\": {}\n}\n\n```\n### subfields arguments\n\nTo enable subfields arguments parsing, you'll have to provide an option object to the function. This feature is disable by default.\n```javascript\nconst graphqlFields = require('graphql-fields');\nconst fieldsWithSubFieldsArgs = graphqlFields(info, {}, { processArguments: true });\n```\n\nFor each subfield w/ arguments, a `__arguments` property will be created.\nIt will be an array with the following format:\n```javascript\n[\n    {\n        arg1Name: {\n            kind: ARG1_KIND,\n            value: ARG1_VALUE,\n        },\n    },\n    {\n        arg2Name: {\n            kind: ARG2_KIND,\n            value: ARG2_VALUE,\n        }\n    }\n]\n```\n\nThe kind property is here to help differentiate value cast to strings by javascript clients, such as enum values.\n\n### Exclude specific fields \nMost of the time we don't need `__typename` to be sent to backend/rest api, we can exclude `__typename` using this:\n```javascript\nconst graphqlFields = require('graphql-fields');\nconst fieldsWithoutTypeName = graphqlFields(info, {}, { excludedFields: ['__typename'] });\n```\n## Why\nAn underlying REST api may only return fields based on query params.\n```graphql\n{\n  user {\n    profile {\n      firstName\n    },\n    id\n  }\n}\n```\nshould request /api/user?fields=profile,id\n\nwhile\n```graphql\n{\n  user {\n    email\n  }\n}\n```\nshould request /api/user?fields=email\n\nImplement your resolve method like so:\n\n```\nresolve(root, args, context, info) {\n    const topLevelFields = Object.keys(graphqlFields(info));\n    return fetch(`/api/user?fields=${topLevelFields.join(',')}`);\n}\n```\n\n## Tests\n```\nnpm test\n```\n","maintainers":[{"name":"robrichard","email":"rob@robrichard.net"}],"time":{"modified":"2022-06-18T13:56:42.107Z","created":"2016-02-07T15:58:58.631Z","1.0.0":"2016-02-07T15:58:58.631Z","1.0.1":"2016-07-31T14:40:14.315Z","1.0.2":"2017-01-24T00:10:49.426Z","1.1.0":"2018-07-03T18:27:16.935Z","1.2.0":"2018-10-10T15:30:39.257Z","1.2.1":"2018-10-12T11:40:41.334Z","1.3.0":"2018-11-15T18:53:21.958Z","2.0.0":"2018-11-29T16:56:31.544Z","2.0.1":"2018-12-04T19:29:05.744Z","2.0.2":"2019-02-28T17:38:26.981Z","2.0.3":"2019-03-05T01:35:03.085Z"},"homepage":"https://github.com/robrichard/graphql-fields#readme","keywords":["graphql","graphql-js","graphqlresolveinfo","fields","schema","ast"],"repository":{"type":"git","url":"git+https://github.com/robrichard/graphql-fields.git"},"author":{"name":"Rob Richard"},"bugs":{"url":"https://github.com/robrichard/graphql-fields/issues"},"license":"MIT","readmeFilename":"README.md","users":{"cr8tiv":true,"bsdllc":true,"ivan.marquez":true}}