{"_id":"@alugha/graphql-field-arguments-coercion","_rev":"6-920e6dd8f48cacffa3e781cd7473a319","name":"@alugha/graphql-field-arguments-coercion","dist-tags":{"latest":"1.0.7"},"versions":{"1.0.2":{"name":"@alugha/graphql-field-arguments-coercion","version":"1.0.2","description":"Implementation of the support of coerce function on GraphQL Input types","homepage":"https://github.com/alexstrat/graphql-field-arguments-coercion","repository":{"type":"git","url":"git+https://github.com/alexstrat/graphql-field-arguments-coercion.git"},"keywords":["graphql","directives"],"main":"lib/index.js","types":"lib/index.d.ts","scripts":{"prepublish":"npm run build","test":"jest","build":"tsc"},"author":"","license":"ISC","peerDependencies":{"graphql":"^15.0.0"},"devDependencies":{"@types/chai":"^4.2.11","@types/delay":"^3.1.0","@types/jest":"^25.2.1","@types/node":"^13.13.4","chai":"^4.2.0","delay":"^4.3.0","graphql":"^15.0.0","graphql-tools":"^5.0.0","jest":"^25.5.4","ts-jest":"^25.4.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"gitHead":"178073d197a72a862ff6bcee189775f969ebd678","bugs":{"url":"https://github.com/alexstrat/graphql-field-arguments-coercion/issues"},"_id":"@alugha/graphql-field-arguments-coercion@1.0.2","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Xw31zoGQ/p/VpVcz5U82MVYUhIaDPuJVuwPf4vHPktsxvctbS0UWa9bbpLb/SzTNkqnEDZqiJFG/YzvENEGp7w==","shasum":"3caeac6b12a16f1e314540ec0bb5f9a1e52172f7","tarball":"https://registry.npmjs.org/@alugha/graphql-field-arguments-coercion/-/graphql-field-arguments-coercion-1.0.2.tgz","fileCount":10,"unpackedSize":20659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfksyfCRA9TVsSAnZWagAA3ZAP/iGlCQzUHgfJDmKl17lL\nDLjmzrPttQSxjSrhla9vrmik8nBMtBWNizSKWOD90VAe59r7pgaUfwoNXSQH\n3L4U3FLUfqh0o/7CU+2idQ2hJZf9sfzem3ydYpQTJJG4+zip8FPk+l0Ikdn0\nG7L3G0hIysfKJXcWedbQig4tQWSjuOTWljTSOfkSZyROAaSdznMhILy6msT5\nJa/KuXr10pDFAR9G9un2lGUIwMuo5+So6Ps4o/xRchR50R0qDacRZmoDBE8C\ndcgb9428gisJ+btEFqLhDeRhPJHu6fpevyWdZuLjtSBVejT7xdu1ZoLyzgAu\n001ne7jX54XOBu2/tH5OavgYOx/L11PCw+xJSCYKWSbSj158GgDAmMSa9aKz\n+gMruyEKZ4k1etwxxctlTgt6SJjYJJxIUjaGpbUQ+taiPSal6FfK6jmEvBI1\n3DA1pmoGI3oP4FY+d+7SomBuDaf57CKQVfAKo4frGbCGmXW4JF+DRDKwxZE8\n737htP1NTyqK7d3WDp0kyxVk6QImQ9SqrGcx0KTXMZu6qVmRntzZ95aPvMLZ\n4kffaS1sNoUCKrrQOPTduIjY2PXYv4S+a7h9jz8+zCqQy/KHYQjKxO6od7mN\nPwYskRgSP7kp7ogKZ3YVJKqrKuEdPxggk4gIAWXrcjS3Glr/dO33ME0YzRca\nvTkV\r\n=AmlL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1RpBVTQA1G7gbjYpH6n41SC1I9WG7CJCHQ7zrImGS+gIhANShD+4k7Z/2vo+vERSs6xhlTFzjTRigmlW8Ecxtx+Ej"}]},"maintainers":[{"name":"niklaskorz","email":"niklas@niklaskorz.de"}],"_npmUser":{"name":"niklaskorz","email":"niklas@niklaskorz.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-field-arguments-coercion_1.0.2_1603456159119_0.6917615764281959"},"_hasShrinkwrap":false},"1.0.3":{"name":"@alugha/graphql-field-arguments-coercion","version":"1.0.3","description":"Implementation of the support of coerce function on GraphQL Input types","homepage":"https://github.com/alexstrat/graphql-field-arguments-coercion","repository":{"type":"git","url":"git+https://github.com/alexstrat/graphql-field-arguments-coercion.git"},"keywords":["graphql","directives"],"main":"lib/index.js","types":"lib/index.d.ts","scripts":{"prepublish":"npm run build","test":"jest","build":"tsc"},"author":"","license":"ISC","peerDependencies":{"graphql":"^15.0.0"},"devDependencies":{"@types/chai":"^4.2.11","@types/delay":"^3.1.0","@types/jest":"^25.2.1","@types/node":"^13.13.4","chai":"^4.2.0","delay":"^4.3.0","graphql":"^15.0.0","graphql-tools":"^5.0.0","jest":"^25.5.4","ts-jest":"^25.4.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"gitHead":"178073d197a72a862ff6bcee189775f969ebd678","bugs":{"url":"https://github.com/alexstrat/graphql-field-arguments-coercion/issues"},"_id":"@alugha/graphql-field-arguments-coercion@1.0.3","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fpucDa7GwXuV2H9LYa9J143mOi1KVD8c4lGUha7kCpn57XzxvFVbVHZjLGM0A/EJNvEybaZZhKzW3+JyLaTybQ==","shasum":"6bc6fc9c5cf73f32c813b4ceb42c36a3d7e71d84","tarball":"https://registry.npmjs.org/@alugha/graphql-field-arguments-coercion/-/graphql-field-arguments-coercion-1.0.3.tgz","fileCount":10,"unpackedSize":20659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfks4LCRA9TVsSAnZWagAAKd8P/jNiLphh+YB7oUuaATYL\n+MTxICnfS5gYsOzwP+g84xDFQ76FV+6G7jVMoryB0Zj1QETK65Citfwk9x/N\nyyhzV7K1g/J0+mnejvwPvk5exqQgMbCySyIO0xOwjgbsHX60mNsYCdc+87Wi\ncJVgLr6sp+51MaEa6Z+2o6UpBvmGAVL09tuLdJu2E6/hZebS5rZ/tIrzMpDj\nThtUnMNBE4+c5U9SIhpiZ7+FFrFoLo8cZMmbHQhAErd7PIodOdJXWruHWLwD\ngzYH8aOF7Ay01GA4Z3DKrVejkLUyC0GEw0NyOpS8CF4ma9DO7UwtYqkqLTj0\nwZM+2WOhvZoN1YLnqtC8q+mUzxLERzH0y0jDcI8kgAhnMkCbikSn9R+Kvu4h\n44aT8TsJogGtVTebl7XKbUkb1Vr995rMUBcEqEiATuDfDqqhCwpwlyXAVI75\nTCm+dJzoe7BtDwcycS2/UuunCmVi4INPPZLLC7wrBhvJdBFghuh3g8U/D8cw\naH3BUQLZkOHplwtytgvMYxPX26PHWSQ/v0oUAMiq8G7+bZlNK6vVbbrnf5ky\nsxvXLidRQo0iR9d4J9GllKKppzI7ULx0yi36vckfjY9apcv5ime8ZYx+t1w7\nKaxSH4wfOkoGZW8WiY2UBtByt+Ob6ScQIuQsnOmdF58xiqKrYBsmIrEVZ6RR\nctng\r\n=oxcw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBSI5iuglNMCqzt+2AnjzI8i81I8SnBfq2PWYGRoSPPAAiEAkyrE2tfG0GdINvkzZSQTP8/qaDC8d8fxdHHXslMn29o="}]},"maintainers":[{"name":"niklaskorz","email":"niklas@niklaskorz.de"}],"_npmUser":{"name":"niklaskorz","email":"niklas@niklaskorz.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-field-arguments-coercion_1.0.3_1603456522724_0.9492298877481133"},"_hasShrinkwrap":false},"1.0.4":{"name":"@alugha/graphql-field-arguments-coercion","version":"1.0.4","description":"Implementation of the support of coerce function on GraphQL Input types","homepage":"https://github.com/alexstrat/graphql-field-arguments-coercion","repository":{"type":"git","url":"git+https://github.com/alexstrat/graphql-field-arguments-coercion.git"},"keywords":["graphql","directives"],"main":"lib/index.js","types":"lib/index.d.ts","scripts":{"prepublish":"npm run build","test":"jest","build":"tsc"},"author":"","license":"ISC","peerDependencies":{"graphql":"^15.0.0"},"devDependencies":{"@types/chai":"^4.2.11","@types/delay":"^3.1.0","@types/jest":"^25.2.1","@types/node":"^13.13.4","chai":"^4.2.0","delay":"^4.3.0","graphql":"^15.0.0","graphql-tools":"^5.0.0","jest":"^25.5.4","ts-jest":"^25.4.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"gitHead":"be6f71095196c1227666bcda3f9b2babbe4c8030","bugs":{"url":"https://github.com/alexstrat/graphql-field-arguments-coercion/issues"},"_id":"@alugha/graphql-field-arguments-coercion@1.0.4","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-H817K7zdzdyNYbkruvbWFvqMMQtJYOyrqfcM6LtzkXrxE1FLTmPpJIZlzGrerZ2TC/qKLo387j7ddDnSobsH/g==","shasum":"004b18bdd39990f22f7508dd0694a0d8633cf787","tarball":"https://registry.npmjs.org/@alugha/graphql-field-arguments-coercion/-/graphql-field-arguments-coercion-1.0.4.tgz","fileCount":10,"unpackedSize":20756,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrSxcCRA9TVsSAnZWagAABnIQAIhn4c2uTi4zBqGCp+4r\nHK5neF1HDNHxQ7yHHILGk1q/MzLBE0ZBljdjoe3vP005EN8G/Ek14AcpMp6g\nWN79TVFJtA7Ebw3Tnchr/VFQabIYEVGMcHM843Ip2NtNJwBCKrMe6JI+Xe5N\nreN8ywPZm/9YIvLlH7XqW1sI1vE5Mz/SYW8SLt5NH9F5bHtSV7xzXU56tz+z\nfw6r1VolCqjpBcVKJWPafoE4v2kSG5/z1Q/yc7fGV775ADOoxdg9dJ5ya5CR\nIZ8wFJRpXvaoIv8SKALrNKtXVidCw9wEOSKK+2Bg3UADIyFkUhg87mAw3nov\neB15nYG6qNWEWJ7VdcjofaIrjgRZabJHKst1BmzRtw1mNvynu5HxuTjmTsaz\nGFDSel/K8/Q0alB5/r1FfmTcCrskfB/r0vUICJg83AODGeX5aEd5f7Q5b3n4\nYfqxTAww9Y4Gtxke68vtkc3ixT2tDPWqn2yYBdAFTZ26uqLllbFfkIkUn6yM\nh7g8ZNKGqErMVd33AuTr+8rXGqWv+Z/fOq2Lt2//2rB5jHruSCBLLAXqv21S\nSzJvfIvdaeJ2VjAQYWoOL8Zd6uD4+eWB/JsonqWkpMhim6A6fw0Pd9UK1DiC\naVqeeNsn6t4bi32R65itBY5rkd2oaB5UmDsyIRgoRBwcHRNNE+mczS+KiSh3\nx2ay\r\n=cx9P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAM7HUX8aCT6FhYQQL3+c9NHn8AQcgIoRtCe0anzkhiSAiAKkSTTcmptgpM88af8yhzBIZ860Y7OExnsURWtg2O1BA=="}]},"_npmUser":{"name":"niklaskorz","email":"niklas@niklaskorz.de"},"directories":{},"maintainers":[{"name":"niklaskorz","email":"niklas@niklaskorz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-field-arguments-coercion_1.0.4_1605184603989_0.7588616309827783"},"_hasShrinkwrap":false},"1.0.5":{"name":"@alugha/graphql-field-arguments-coercion","version":"1.0.5","description":"Implementation of the support of coerce function on GraphQL Input types","homepage":"https://github.com/alexstrat/graphql-field-arguments-coercion","repository":{"type":"git","url":"git+https://github.com/alexstrat/graphql-field-arguments-coercion.git"},"keywords":["graphql","directives"],"main":"lib/index.js","types":"lib/index.d.ts","scripts":{"prepublish":"npm run build","test":"jest","build":"tsc"},"author":"","license":"ISC","peerDependencies":{"graphql":"^15.0.0"},"devDependencies":{"@types/chai":"^4.2.11","@types/delay":"^3.1.0","@types/jest":"^25.2.1","@types/node":"^13.13.4","chai":"^4.2.0","delay":"^4.3.0","graphql":"^15.0.0","graphql-tools":"^5.0.0","jest":"^25.5.4","ts-jest":"^25.4.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"gitHead":"be6f71095196c1227666bcda3f9b2babbe4c8030","bugs":{"url":"https://github.com/alexstrat/graphql-field-arguments-coercion/issues"},"_id":"@alugha/graphql-field-arguments-coercion@1.0.5","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-stU2q5P8IkdBHCynnzD3M5TCMM7G2j24cnH+rkDcZQnTAUcSXD2iggGsx/nweiQZHIiMWum8lY9CP1HkoYtLdA==","shasum":"0601de85ec6a9d2a325bd3e557fe017fed00545f","tarball":"https://registry.npmjs.org/@alugha/graphql-field-arguments-coercion/-/graphql-field-arguments-coercion-1.0.5.tgz","fileCount":10,"unpackedSize":21082,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrS+gCRA9TVsSAnZWagAAQ7UQAJd/JwPhJMflKUcGp6yt\nKm6Keepd7bThwPS/L+1fXYLvLBqJ2oQ98Kv+wLAAt9hmmhfK4j6sWhMyyMUK\n/rwWQMr52T/X3Yw/b50PbavyG9NWrxeaguSSy3XId1WA+HIvLoMYfygIXN+L\nVGHTGVrzl7oGH1mrfO0TAQd2UrZEqCjeuGYTeZt9gnPgOCjY9Tmq/QB/fZGb\nNAMW61Q/ZKDYqX8rnd6aIWhlAHQSnfQdIIOkmvYZencd71V3viMr3bnJnHCI\na3w5oCZ7Sq55AcS7J9ZXzJRquF8zmNl7bglcq/IShLaPue8vp8xeG7zR/0xE\nNHHqZBf6+71xbPAV7p3et5rcAXR3lj+Esne1YP2ehW0K2Pi/d8zOuMBmvQ9c\nZm9TXMWXMgUb+CwVE7GcX5Ca7oIbNM4wfeatlKXbYmKHA0zjzo5Pr3Q/Nfj1\n22McdLlS49A3KNoYwPdZMLvZcvOFvaFf2z01k+fLLDkW9zkc2iOqQSuc3TLE\nVcliO2utZxMsttyQCzFDoZiWnMfl7mA6rD8IpU2NohWYvCCW8HRjYgBqf9Bo\niUR3rJfs9We/hejEJHkw4dLjnLiyEOpdfBqGE32haSkmqaFHPxCgWSZ6Ud7K\nTWEMLzMRQw0B0dWnPKZo6tkNozn+/KR7Ma6WsRFeX7OU2pfMU9cym8jAhTV4\nLk5m\r\n=EFgd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyvA9PPnonmSiA7iJO6eF0Z5Td3ChY36fKWDmz4hdQCgIhAJxIS/RQ/W4mGzHIqDKi+svyoH4Am2qgZzbg37Kbkt/C"}]},"_npmUser":{"name":"niklaskorz","email":"niklas@niklaskorz.de"},"directories":{},"maintainers":[{"name":"niklaskorz","email":"niklas@niklaskorz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-field-arguments-coercion_1.0.5_1605185440285_0.8227033742938408"},"_hasShrinkwrap":false},"1.0.6":{"name":"@alugha/graphql-field-arguments-coercion","version":"1.0.6","description":"Implementation of the support of coerce function on GraphQL Input types","homepage":"https://github.com/alexstrat/graphql-field-arguments-coercion","repository":{"type":"git","url":"git+https://github.com/alexstrat/graphql-field-arguments-coercion.git"},"keywords":["graphql","directives"],"main":"lib/index.js","types":"lib/index.d.ts","scripts":{"prepublish":"npm run build","test":"jest","build":"tsc"},"author":"","license":"ISC","peerDependencies":{"graphql":"^15.0.0"},"devDependencies":{"@types/chai":"^4.2.11","@types/delay":"^3.1.0","@types/jest":"^25.2.1","@types/node":"^13.13.4","chai":"^4.2.0","delay":"^4.3.0","graphql":"^15.0.0","graphql-tools":"^5.0.0","jest":"^25.5.4","ts-jest":"^25.4.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"gitHead":"be6f71095196c1227666bcda3f9b2babbe4c8030","bugs":{"url":"https://github.com/alexstrat/graphql-field-arguments-coercion/issues"},"_id":"@alugha/graphql-field-arguments-coercion@1.0.6","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-I7kU7JY/ORKH9N0MQ3eEiIdoEquaOrYhmz+u/vpaNdu+Qvhj0+bkiP/VFXIWkfRPCQk9ceGZRFrpVBPO07jvPg==","shasum":"f29175c993a2ac953f1e84ca589ba983e0f5e21c","tarball":"https://registry.npmjs.org/@alugha/graphql-field-arguments-coercion/-/graphql-field-arguments-coercion-1.0.6.tgz","fileCount":10,"unpackedSize":20880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrTAhCRA9TVsSAnZWagAATn4P/04sGa4/mShAz9uwjw97\nWtboseZZ7OqHRoeg1nqCuS41lax/AwS9wh57BIkcvKnZsq1O10JsWW4kW91y\n4CF/+AsM8Fn4DNGTGDtKOT6HFEoSIphDBGchHNgN6hHRIJxEj3pCQu4QOXdA\n5ZsfxpW1sZ3qz1TzrezigM3SFGBpPDSrvW3kslZlB5hkAO3l0JRv6/GjI+8+\nMwmuLudOQajUL6wsCEZ6M2Xc7TF+uYCwS0NuLQWWXRAUn/rKWWCiTchJS4Dq\nCJZ2Q00Mum6nnT42KvbntoUz2bigeOfpRL62uXHGeq+lbbspKn3qUL8/dMWR\nH9y9Bw4wvp8G2sILTSNeWgROf4XLg+PmGS8BMmZ0IPjuJjdw/d0BXgYD5KRb\nBGqaXcg5RJTx+dPCV8BiHby+KrET+rFt1sIjBTO4EtVCCQ+NEchQL2e/9yAB\n2LSRkOlGX0J3NRsjvzqquTzT9ImgwWcb90A9GbcQaQPqS8Y0Agcupsci9XbT\n5fSm0sJD2RScBZZ/AvtCnJqoVum07md/cQkvqZyBfd/9dlCu+sCYH1Sed648\nqO1/xGNgj5HfmfwQbIaBvZFDBGr4xRSl0jduxeNJoNlFiQFb7iqZ1jb5wAAc\nhQNoT7CzN/QSUbRj+ly6S1AVqe5EkqdUx2ni2mp1w2Asvq5Ya9YpDKbFL9iH\nEr5t\r\n=w5FR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHywqfuwzpDWd0JPHGR0T1Qqu2A6arWReYz7jppPgG1tAiBfa249ZCguILjMjYvSqJXjqX5GJaiYSc/mZMsGfLQ1zw=="}]},"_npmUser":{"name":"niklaskorz","email":"niklas@niklaskorz.de"},"directories":{},"maintainers":[{"name":"niklaskorz","email":"niklas@niklaskorz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-field-arguments-coercion_1.0.6_1605185568863_0.33892130564118284"},"_hasShrinkwrap":false},"1.0.7":{"name":"@alugha/graphql-field-arguments-coercion","version":"1.0.7","description":"Implementation of the support of coerce function on GraphQL Input types","homepage":"https://github.com/alexstrat/graphql-field-arguments-coercion","repository":{"type":"git","url":"git+https://github.com/alexstrat/graphql-field-arguments-coercion.git"},"keywords":["graphql","directives"],"main":"lib/index.js","types":"lib/index.d.ts","scripts":{"prepublish":"npm run build","test":"jest","build":"tsc"},"author":"","license":"ISC","peerDependencies":{"graphql":"^15.0.0"},"devDependencies":{"@types/chai":"^4.2.11","@types/delay":"^3.1.0","@types/jest":"^25.2.1","@types/node":"^13.13.4","chai":"^4.2.0","delay":"^4.3.0","graphql":"^15.0.0","graphql-tools":"^5.0.0","jest":"^25.5.4","ts-jest":"^25.4.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"gitHead":"a57b560d14f9c42ce39e65d1f5d1874c26d2a510","bugs":{"url":"https://github.com/alexstrat/graphql-field-arguments-coercion/issues"},"_id":"@alugha/graphql-field-arguments-coercion@1.0.7","_nodeVersion":"12.17.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3tw6Rrd34emwAVJLyRmCoRHxA2JABwOm8zEgkR85CskyMoADjkNzvlzlzK/38uWwCvF3A89xA6H4NOHJkEJq2A==","shasum":"8e52c1fcad897f94124d16299678bcf2e0a65481","tarball":"https://registry.npmjs.org/@alugha/graphql-field-arguments-coercion/-/graphql-field-arguments-coercion-1.0.7.tgz","fileCount":10,"unpackedSize":21344,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXf4zCRA9TVsSAnZWagAAKPAP/RlcJxqC37Ty2+N0iLo5\nipNqy4YscwSbP3HbjKSJEzTE7fEAOGZQy/GLjRV9a4urFBCpyjlOP7CM/CiQ\nCJhMzhRqE2ITegsYa3Bz2eGFM5hN6cWuEZEpZ/76jCWucU2/qoR2rGmvHPY4\nKDbUkblv/m60MyvgcZzOeNMr907OeXc/gwOs3eGu8mLCe+F65PXxMDXMZvSI\nGp3qdIuElFSkdaFu++LZ//6dHxWqA/wMt4XrGizv5UMg6XpMxypSPkbDdKMc\nKuamHKSpdfTkD0Y+zJfl2dGX1zDrQLQIaRxN75etaJ2GCYWUB1GStaGIEp84\nVbUmQWhMmjwcczT8+Ajo+wgGWfRzIxmfyTlanc2JcJ0kVOnOn3IWsDXLhoze\n5HsclZp3x1TVHI/7rL3ty4ijrHsyq20skLzmTUXI1BGzg4P9mpwBYZjq28Go\nwunqQYzgWXwmgQONk1mcn1/OFAMuYvJ5C974OoMD/AIqV3J5oPEZNHgXgn/n\nzd+YGkcpPKMpw+A4+j+lWQKr06D6wTjEZ0fZ4LSQxGeiz0PXzVaygofQvr/t\nn/AEL1B6gqDeZyvc1H8LdA7MwBGmZIwBXHBzbUanvMFoFvs9XiZWoilAF8K5\n8Ep01DRvWb/dxxxkNLIhP3P/TqsJSfwz3IqjengM5kyfOObaGRF7UYytlAkU\nrLvv\r\n=iQ4Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzptuDgY5kr208I7WPmORcQeYdn6nY8yn100SIG/EdRAIhAL4+7gflFB+T7VLdId/q6cWAc8qaLu/LTC8ztqPVgoau"}]},"_npmUser":{"name":"niklaskorz","email":"niklas@niklaskorz.de"},"directories":{},"maintainers":[{"name":"niklaskorz","email":"niklas@niklaskorz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-field-arguments-coercion_1.0.7_1616772659013_0.9519750181455722"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-23T12:29:18.952Z","1.0.2":"2020-10-23T12:29:19.272Z","modified":"2022-04-04T13:41:18.453Z","1.0.3":"2020-10-23T12:35:22.857Z","1.0.4":"2020-11-12T12:36:44.157Z","1.0.5":"2020-11-12T12:50:40.444Z","1.0.6":"2020-11-12T12:52:48.991Z","1.0.7":"2021-03-26T15:30:59.144Z"},"maintainers":[{"name":"niklaskorz","email":"niklas@niklaskorz.de"}],"description":"Implementation of the support of coerce function on GraphQL Input types","homepage":"https://github.com/alexstrat/graphql-field-arguments-coercion","keywords":["graphql","directives"],"repository":{"type":"git","url":"git+https://github.com/alexstrat/graphql-field-arguments-coercion.git"},"bugs":{"url":"https://github.com/alexstrat/graphql-field-arguments-coercion/issues"},"license":"ISC","readme":"# graphql-field-arguments-coercion\n\n[![npm version](https://badge.fury.io/js/graphql-field-arguments-coercion.svg)](https://badge.fury.io/js/graphql-field-arguments-coercion)\n\nImplementation of the support of coerce function on GraphQL Input types.\n\nUsed to implement directive-based validation and transformation of field arguments.\n\n## Install\n\n```sh\nnpm install graphql-field-arguments-coercion -D\n```\n\n## Usage\n\nUse `coerceFieldArgumentsValues(field, args, ...)` to coerce the arguments of the given field. To coerce the arguments' values, it will recursively use the `coerce` property, a coercer function, hold by `ArgumentDefinition`, `InputObject` and `InputObjectField`.\n\nA coercer function receives 4 arguments:\n- `value`: the value to be coerced.\n- `context`: the `GraphQLContext` of the current execution\n- `inputCoerceInfo`: an object holding info about the current argument, input or input field. See its type definition for more details.\n- `fieldResolveInfo`: the received `GraphQLResolveInfo` of the field being resolved.\n\nA coercer function can return the coerced value, a promise resolving the coerced value or throw an error.\n\n### Example\nHere's an implementation of a directive-based length validation `@length(max: Int!)`:\n\nFirst, we need to add the coercer to evey argument definition and input definition targeted by the directive. To do so, we use `graphql-tools`'s `SchemaDirectiveVisitor`.\n\n```ts\nconst directiveTypeDefs =  `\ndirective @length(max: Int!) on INPUT_FIELD_DEFINITION | ARGUMENT_DEFINITION\n`;\n\nclass LengthDirective<TContext> extends SchemaDirectiveVisitor<{ max: number }, TContext> {\n  visitInputFieldDefinition(field: CoercibleGraphQLInputField<string, TContext>) {\n    this.installCoercer(field);\n  }\n\n  visitArgumentDefinition(argument: CoercibleGraphQLArgument<string, TContext>) {\n    this.installCoercer(argument);\n  }\n\n  installCoercer(\n    input: \n      CoercibleGraphQLInputField<string, TContext> |\n      CoercibleGraphQLArgument<string, TContext>\n    ) {\n      const { coerce = defaultCoercer } = input;\n      input.coerce = async (value, ...args) => {\n        // call previous coercers if any\n        if (coerce) value = await coerce(value, ...args);\n\n        const { path } = args[1]; // inputCoerceInfo\n        const { max } = this.args;\n        assert.isAtMost(value.length, max, `${pathToArray(path).join('.')} length exceeds ${max}`);\n\n        return value;\n      }\n  }\n}\n```\n\nWe define the schema as usual but add the directive:\n\n```ts\nconst typeDefs = `\ntype Query {\n  books: [Book]\n}\n\ntype Book {\n  title: String\n}\n\ntype Mutation {\n  createBook(book: BookInput): Book\n}\n\ninput BookInput {\n  title: String! @length(max: 50)\n}`;\n\nconst schema = makeExecutableSchema({\n  typeDefs: [directiveTypeDefs, typeDefs],\n  resolvers: {\n    Mutation: {\n      createBook: (_, { book }) => book,\n    }\n  },\n  schemaDirectives: {\n    length: LengthDirective\n  }\n});\n```\n\nNow we'll wrap all fields' resolvers with a use of `coerceFieldArgumentsValues` so that we make sure the arguments are valid before calling the resolver — otherwise, we throw the appropriate error.\n\nTo do so, we'll use `graphql-tools`'s `visitSchema` and `SchemaVisitor`:\n\n```ts\nclass FieldResoverWrapperVisitor<TContext> extends SchemaVisitor {\n  visitFieldDefinition(field: GraphQLField<any, TContext>) {\n    const { resolve = defaultFieldResolver } = field;\n    field.resolve = async (parent, argumentValues, context, info) => {\n\n      const coercionErrors: Error[] = [];\n      const onCoercionError = e => coercionErrors.push(e);\n\n      const coercedArgumentValues = await coerceFieldArgumentsValues(\n        field,\n        argumentValues,\n        context,\n        info,\n        onCoercionError,\n      );\n\n      if (coercionErrors.length > 0) {\n        throw new UserInputError(`Arguments are incorrect: ${coercionErrors.join(',')}`);\n      }\n\n      return resolve(parent, coercedArgumentValues, context, info);\n    }\n  }\n}\n\nvisitSchema(schema, new FieldResoverWrapperVisitor);\n```\n\nThe full example is runnable [here](https://codesandbox.io/s/graphql-field-arguments-coercion-usage-gjppl?file=/index.ts).\n\n\n## Related\n\n- Validation in Input types proposal [(graphql-js#361)](https://github.com/graphql/graphql-js/issues/361)\n- Support resolve on Input types [(graphql-js#747)](https://github.com/graphql/graphql-js/issues/747)\n- Directive visitArgumentDefinition variable healing [(graphql-tools#789)](https://github.com/ardatan/graphql-tools/issues/789)\n- SchemaDirectiveVisitor.visitInputFieldDefinition resolver doesn't fire [(graphql-tools#858)](https://github.com/ardatan/graphql-tools/issues/858)\n","readmeFilename":"README.md"}