{"_id":"fauna-gql-upload","_rev":"32-af90dc0d1fca2af2e2c2b80e8dca0720","name":"fauna-gql-upload","dist-tags":{"latest":"2.5.0","dev":"1.6.3","preview":"1.9.1-preview"},"versions":{"1.0.0":{"name":"fauna-gql-upload","version":"1.0.0","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"dotenv":"^8.2.0","node-fetch":"^2.6.0"},"devDependencies":{"eslint":"^6.8.0","eslint-config-plazide":"^0.1.6"},"gitHead":"5e985f2be481f4fdddac8a128fff9c344659f52e","_id":"fauna-gql-upload@1.0.0","_nodeVersion":"13.10.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-ReYWARz4e8x9nuLugVN1vD+/dYan/KiNkGFNwRZ06cr+EdNDzjZA6azxfbgdD1PFhjKEllT36gPeRN4Ni+QHQA==","shasum":"09fdcdd5f55b3967b701a9cd5218a1175c5d9ed7","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.0.0.tgz","fileCount":3,"unpackedSize":2625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeg1BLCRA9TVsSAnZWagAADbsP/j9qEMA3oafZnUYDu/jI\n8YvnScCbbywm30Iw/8LiasVjStbnTsZ9pDTaEBTS+HjNFxkhRvQI/HLDZ83b\nNX9+F6PFiKsFC1mMY5HFW7vUiZ8b+CYXn5PILIsuyyNTfRxPfGwPQFEPEzxr\nCmjP8EHH5NJwu6F2/XTlBrgj0ZuMynow248K5UUimO6UyQeh3ERXrDCXpQNK\nMe0r4909Ol0TuB7uiSteZQ8Zv5LAzfIrsZN0l05U+SPS44Uj+VUWMlSe97aL\noFSgPExbisTQ2l6iwkDGHmfkxDUJqQd3sLGN0UzOQsRk/z5X2S6KO5YpxyQu\nuYFUqg6xy+Upb1R8Yv5eIQ5kSQTkyrotmzeFabNe2NC+vKHhQCkCgPZLR5s3\nflAt6azbHjcIrcu3qkUJrifTEIhJQOya7KKzuM3SxI8Oaj4fcElYeALYa55v\n/3KcKbsnyjH7PwJi+1lpMqXYk22iwnj/hScbGWQWpa9MGfb/y29Qz7PSZMcN\nXYPcs+99zJ1QWOCwZP44b+gSUyxN0LpZd4x0Yz9GsVRSMBZPqTDmTnO2uBns\nf18r6wNkUa3Ma63CoDa4tMUi5yS8ATfylbKAw8r9YcHKXe/8hLXgOn1NXwr/\nQnqB8oaWur0OoRHVKMZwxwA9F7rwNiD/dk9qjhQdpZdwBZkQzZwK9msxsMpe\nuJ5T\r\n=oNKt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFtgCN17wVOGwdGAnH0flC+W7mm7r6cPiqHyAWwdmGn7AiBrizYOYlEvl4jAIyXVY13h/JqyxMFVCn2mmIGkl695JA=="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.0.0_1585664075168_0.9785273443201747"},"_hasShrinkwrap":false},"1.0.1":{"name":"fauna-gql-upload","version":"1.0.1","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"dotenv":"^8.2.0","node-fetch":"^2.6.0"},"devDependencies":{"eslint":"^6.8.0","eslint-config-plazide":"^0.1.6"},"gitHead":"837595513ef7e2c31ae9aab39346ac26aa4fdbca","_id":"fauna-gql-upload@1.0.1","_nodeVersion":"13.10.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-lVhKBoO4iowAm8ril3k+r3d2qC9vJttfxvcESLk4Wy8HSM+eH0ifuQxTJOknDtFcWNonknyHah3tJTg34gOMUg==","shasum":"f8742d826cd1fe94f4fe373c4e15d25e56a98da5","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.0.1.tgz","fileCount":3,"unpackedSize":2907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejePeCRA9TVsSAnZWagAA0xMP/AmwH8N08C7QUY3Cq33D\nmHprOn/MyA6pe2ljQ86yGBuYREj0yNBcc6Lb/LD73Enx9+FtDBAO7kdTvomB\nrAydiFxEPwB+t51k5yQQ6s3Zqu/ypL2MSSHVys+O9ILJNXy9VUwnupy6CJUS\nJjR8KI6hs0OU6zkXgImT9kmJl6Ts4LWBNWJ2TiyUhyuOcKjxnom+eT+qfFa3\nR46IB1w28B8inVMuNnYY9SbxXRffZguAroXr6pswmiV5GiCnjsxc7ayhU1UG\nEZ+YU7XXv/I9PbP0dzSfLHn1cmKj3dhOIIYTXS7w1BxNgw76Xcg/hx9MKRZo\nBlZCMBQKCY9uYUeswBShR97Mg1EcSpRo1KaFycovqQMGfTimm48joyZnZGSJ\ngwPpQ5Bt3HHRSz+qKtWJDnhNoyfIJzw3DOytSfAj7RD0ksdGHHMIzSZOcuCe\nNHrl4wNkBpnnp4OPO+KluLHn+/o+ZoPF+SdLulNAXmlQjRSww5YKtJ3ai3cj\naCakrV6OBZgEKBTJPdIqvOuX37yQNBcmpMOe4i7SKTglMjyRBZokXjO2HFWd\niA78xQwBJ9rZe5PCqdEby0SLaQcTEsSs3GtDd1hxreUqVwt/tY7t2nAO6JBF\nwwvvp27GnQ6kqZvCbnlKAKeQ48LCjI/w6AMur1snszIftxF1Ba9k72klxV82\nCRFs\r\n=Cuv6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHDXKhDgg6CEYoFVJ6B/fno01eyghZft36GfaXCegIV9AiEAg0EeGuTAzvmPmuPLIqaU+a5YwFgPcCJbGSRxxnLP7cI="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.0.1_1586357213702_0.8719489607892963"},"_hasShrinkwrap":false},"1.1.0":{"name":"fauna-gql-upload","version":"1.1.0","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"dotenv":"^8.2.0","node-fetch":"^2.6.0"},"devDependencies":{"eslint":"^6.8.0","eslint-config-plazide":"^0.1.6"},"gitHead":"58b7dadaff45d576e2eb95efa00222b46baf615e","_id":"fauna-gql-upload@1.1.0","_nodeVersion":"13.10.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-6wbkAagdJrkY/SLU341zgndoKNP5QOSgPWzK5+5Omvb/vzyAQZMn6jGCctbs2cKgC4hACc2EWpxClj0V8kd3XQ==","shasum":"e403849d8d561bd9cad65dbc627208476650dd68","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.1.0.tgz","fileCount":5,"unpackedSize":6894,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelx7/CRA9TVsSAnZWagAA2DYP/AnWraUqYUjznqmF/xCj\nKCgPvOizadU3PSvMIBxBwrCRybuu5Ez/1N/gfHfuo9FAK4UgX5GY4GpI9ti1\nZAi0gFHg19DOVl84eCDkOHrG497jAPs5YI5EBjKTDDzkdaboWGtfigOQ+5A0\nyuSh+4QmFTRWcUlw3EFaGuSnLEFV5LTJI5CCtx039Fr1h33ie17vX8ZefQ7V\nZzPmgtFKZkCo8K6o65HfeE3Zrtk3/LWcC478lsrXAnGKdVnL/SHgqv08n/15\nh0bp3pbL06yC0WgNAXhpgZsakBRa3IHIPYq8AMcdMhtSqUOGmbPoTIQBv4zL\niooQ3tjPysQnbgQKw9BSf6XzPtObZg0dQh+/BF3mq86DVEAkdX183SHAsT1Z\n9ALAM8TPsv0C14rJv/rfYIW6kDuqXGTeIcwfJIEkWRQtqBr7PnoJ4Khonh5v\nbbTdKU3q8e348xXf9gdV3WKpw95YY+5YAmU1pMg3gGFLzDY5GmZDaEgaVUo7\nfZBrcE9jhP79VKXoMLOsoX/dr2mVeUTjVcZ3lAYVb0l/KMRSWLdXtWkc5TPS\nK8FNpRXuluV1lY544H4oAmPMrpEv84b6t38leZB2cue+ANmmPWot5CpwY4VD\nzayqWDHL+obBm5/W5LaCtYgbFbUoukr0zi2Ae9Kz4GZXD3eiMEEGx1qaopW1\nlJyW\r\n=EUk6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgzJpPOj0EHH0kWbf16Bu7Ly7J9cijIxiaKDz5GFM1VwIgCHErK7PhO3tb5yoGskB8c/MmULPK7G5kNGUal7p1w/0="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.1.0_1586962174720_0.9306243181081624"},"_hasShrinkwrap":false},"1.2.0":{"name":"fauna-gql-upload","version":"1.2.0","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"dotenv":"^8.2.0","node-fetch":"^2.6.0"},"devDependencies":{"eslint":"^6.8.0","eslint-config-plazide":"^0.1.6"},"gitHead":"89f2dea3b36d2d497564c907908804d13550fb81","_id":"fauna-gql-upload@1.2.0","_nodeVersion":"13.10.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-/arcy4LA5YO7hoCTdpQN6wPI1soPIoqL3KA94el8UNnXlCqdv9gcEIw8BxQyZyv34sDGnW5wNMmDL0p4EUI1oQ==","shasum":"7d66d9e5c3a2ba78c7541405fdd2766b26e064e9","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.2.0.tgz","fileCount":6,"unpackedSize":10905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepvFTCRA9TVsSAnZWagAAN50P/0MAPUg507rzDBZ5zMLM\nMTO6QdZsOH+8m/xaYaPSX8ptMeP5UHmgPgrB0vrETwJ8qXbzJqZ/cXAf9Iyd\nitGQ17ZztMVqlguwal3cNjqLsvbAvKEFnR/8RnxlAeGo+DpiSQz5nhpagBip\n5nssd5tNczxzxv1qEXz49732f3df4FcclrGZ/H8MSgcrvU3R6eUANsDCVSHV\n6HGh0UvB0AYsCy7dNJKKQq8dtjxp7lXROH4dJk11HtjUhgTYke1PlMhmROzW\ngXbO1guoUTnlgOom0pAtgZa+aiC2yIqKLka1HpTO3d5onUpxIhH0rjJ0ezNq\nZt7YK9h+7/EJ+aev7wok4GkPx0evAPvz3ICFQ55D794W0psuTbpoROjsCm5P\ngTlEEh3lVNfnmFnuVtfLq+4VLmQwvP6VutZ0smyZMDVnDZ5PMOfMgWcNHX2d\nHrxNV6cK/n22VRpjuA3XLXMgiohjkUBs8buSeLbu0Ng3oF9NZ9bDz08zDrfx\nmw+wVeiD7H8je70rOWoT4g4X4bmA8JWCC4P3a64j6F7LClzAbYh8heQraka0\nxNSg+LSZdSA8B/8XBSU7KJa2Mk5fSYb8FnOwTZp/OVLlgyX8fqamSFCAykMM\nmReaP3YZyIy1pw70Ytx4dkrJOncf67SW4IVfEDIsQVHK/W9tyCYeg5Lrz9fp\nAjPc\r\n=mx2r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEf4JK66iGrvVZytUOUZ2OWmlRE6uLnSjlo2vlNcQF7oAiEA2s2Dk6w649bq1inYvOu7QbJ2Pe03Hrbj72zSaId/wJ0="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.2.0_1587999058597_0.3336330792697164"},"_hasShrinkwrap":false},"1.3.0":{"name":"fauna-gql-upload","version":"1.3.0","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"dotenv":"^8.2.0","node-fetch":"^2.6.0"},"devDependencies":{"eslint":"^6.8.0","eslint-config-plazide":"^0.1.6"},"directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"56588c228f24eeebb9d30e6c97b029e00cdbea81","_id":"fauna-gql-upload@1.3.0","_nodeVersion":"13.10.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-VSTmWuDuj9zyC7PK23GMmYdYft0wi3DG3GYvCOjJaH7yRgbfhzZtrU0K+J20LaBBuiCZYxpw6PX1+1zSgunGvQ==","shasum":"e2435d3df8e98c32d66315c867375d8706c5ae46","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.3.0.tgz","fileCount":7,"unpackedSize":14795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetA5BCRA9TVsSAnZWagAABh8P/AkCAzWF9cumHHooMqkx\nC6XTcXaR1lzAkslbrzfU+KyvJGpXiXxsrlSQOIWhJubbCKRzJcmqjkfL6TcA\nO5iUBnnaNw6IjVhmwDSlffDr8yDkpIZ3kCA4VSlxv9gq1OGA/n+NxjnLdew0\nnmiT00kqFUUss8FOmPvvUNLcDimoBAvNJ0+cKG2znWKu109NvhjVC6DvkIPe\n7JpjiSmwaFnKVcniXbD8hcpidiE/vVjkNs/TeFAzksy1PbHLWwgK0ltANcZE\ngenqgxA+01Hm9lf1/DP51kTCfTgj96BTj9/pKmX9faZT0qNhF2FKvNSDD0gw\n6kPytA4AiVbLLbay+7XbC+V4tbuKiRK2+E811Y1/snhhvvYdy9RpNmjTNY81\nfMuqU6tqme80UYUdqYpnrjU3GpRl8K/FjHT40FHrOWfyJ269xZACr/QzR2pn\nGfIpdmqyDymv0KOViP8o0qi/+K8A1K4ESvdOPi9WkdUhOzHHo0mbIczWV4j5\neThSFzhvzItQ8Yt5/FC65JxqJdrYPLtv6hCdpZCHJxZb2na+Wb3X7/FhxOik\nV4VHKpwyqdeHAERsKrRgpZRNH/nMhwgu+RDzRNTNlTgF1w0fImaW9Izk2OFB\n3zq5dN4xLHFWV7Lj2IYYcY8h+kR2fhm/Lnu4d4rwJL52y9VclMffbh4YDMS4\ndYBY\r\n=A18o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGOkSJR06mi0eTHLTnV0zEaJp8yE4SsWGssW3zSciHMSAiB8aILVhaUlkS1jtW9HGv7GueochrnAVyHMTPUYiqa1iQ=="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.3.0_1588858432772_0.14681805807951642"},"_hasShrinkwrap":false},"1.3.1":{"name":"fauna-gql-upload","version":"1.3.1","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"dotenv":"^8.2.0","node-fetch":"^2.6.0"},"devDependencies":{"eslint":"^6.8.0","eslint-config-plazide":"^0.1.6"},"directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"cda463a8654b7709d7c3e1ff4ed5679d731e36f3","_id":"fauna-gql-upload@1.3.1","_nodeVersion":"13.10.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-Z+vsv/3wlrgI0hdxOMxJH0jkFXFxIsKtKdm4xVQuR2on60I9E6bYBXFYgh1/DT0PEZ6eg+lvjKbCW4v1nKBdaw==","shasum":"25e711ece40bc5cb3ac18bb1ce314675a10736aa","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.3.1.tgz","fileCount":7,"unpackedSize":14792,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetA89CRA9TVsSAnZWagAA4P0QAIqwiwtvs3+4NXAErx5s\n9wKaTYkvV8c5UUgDxEM22R2NF5EXyQQz5pKNU6gFR4kxW9EX6Z2KzT0l8eJZ\n3e2nCjINaORAc33103KO5+TbhZ66p71K6S5EI/PxW0hTuVQU+5kugvdzupot\nCtsq5I2P8fShXMRdh0TZ2G5tcHoTjYH9e5ED3MqJDULgaOkQezigBrDohAY7\nYjXLRJKi6OYgj2p+j7kTS58Pt1MP0+otegutnJ/RL2HCHqK7Q5b8SZhBDWVB\nu2u1yMnAG03Xecbvz6x85RMf7ny2rTgMJDsSKYtgRxxgI03TBbgZMuLAwoo2\nN1oqe2Dr001H+qgCL/k6y368LGM0JXKTrL/rwuxP1lm/tQBZSy/b+FAS3lEv\nyB7S9LGfXEeNgEiFTWgLxguGZ7pIET82WDPpjlgdFY/DY27xXb4uV7KQIDR+\nuOYnvYokw9KJgzQhgPTR5TfKvSQBGJoo2gZO5JV6gv66nzoPn9qSRIRgqzuI\nkAp9Sr+W3AqRRQGD8i5lTTZQGUc8wy6zP4afeFwoXpzXglijTc1SBKe0Wxuf\nmGkWmfy0e5qaSICoOrFCFN1iXP9UzTJUa7N/OWpl809QtKVgBsBRqIuKUzqV\nIsIgOslupruxXxA7aZTXbv446k/kyxhEXMzfTGlTIgA0RG/di2EGrNiKB8Xm\n9nov\r\n=NWRF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB6K5sOrCT27Xmf/J/KbwFS+baWTDaJBOyr3rVWve7VVAiAlaN6VGIOW9ZlT1AD29WKnRaZ/bhrUq9V/vNhjolOTeQ=="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.3.1_1588858684558_0.12913034380107136"},"_hasShrinkwrap":false},"1.4.0":{"name":"fauna-gql-upload","version":"1.4.0","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","node-fetch":"^2.6.0","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"eslint":"^6.8.0","eslint-config-plazide":"^0.1.6"},"directories":{"lib":"lib"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"75e5bd40ae223fa21327d81464de3a2daaaaa6ef","_id":"fauna-gql-upload@1.4.0","_nodeVersion":"13.10.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-P4zTTGTouaSpu1/ppbGx4a+lUK5GZbCwurkvKa0nUc/D1HuyMW0c0FdGxt0pcpwpoHhF3JjhD4/GWNmDkyXWAw==","shasum":"861ceb752d0e673c01c995bec5a1cc72e60f608d","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.4.0.tgz","fileCount":8,"unpackedSize":16444,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewpyRCRA9TVsSAnZWagAAGLcP+gPX/fa3lYfM3hv6Ynvt\na2y+WJKNYaTDpGHsWUiCCCJuim4dRlXWblcn9gsx3IGVSLu725RI67ZU71h9\ntLl5m3cEVZlr88bMTcs745NdgiBXwegwCCGyba2jprLwxT15inkLsro+RV//\nX5Z9b9XT/yTcMLE8skJTkawn1HQBRgkdNs/rDtENHOCuVZiX6uuq2/u1B2MR\nn12aQyMxa4Yys36Nq4Qu+5GISYkU9fZXH1awuMJaBRmKZ4FrBX9TGwO+xgU7\nFi5frSUS/Riy4mZsaFXAtHil1T2HoOn0osVKkqHy13mlUs5iXKSF48RqQoAu\n3WImcY595DTU21wZFhXZWlQdA7MlgylmOKg+RixkrbmFFMgeb+GUMAcTuvDf\nonyJmEp64jyNL+kR/FnAX7LWuV+D/m7TZd+o3cG58ZDp5Bx/cydduzkfcfd/\nPcXPOUAtVBy6v/a8OMVxeKNEdgQrM9bFeG3gUa/UPoouCXmmIJbU9tQoRDZ2\njjblxp4ekUgqWDw/ocxfOwkArCjG57GZRO5w4p9x9uR57OhORm+uvnYLq0WQ\nGM4msFZ2CXXXOtxX7Ue76MDQx7Mns7RFbUELBSRy0xOwHHaWrZiZFbrdGZAb\ng/PxWAMKDYA57PqXaLrAbXyw0xLeuOd4BlJfRFUFhI/OaXexe/bX7bLmE6f6\n9BoU\r\n=DDMu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAcRtnFpPd8JBWXUeigaghc7wRwEpluM85nqud2OJIbwIhAMlzlCBB+jR8RK3s5FSTpyVImyDYwk/da/ZxlFrYMqXL"}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.4.0_1589812368397_0.10401443016841849"},"_hasShrinkwrap":false},"1.5.0":{"name":"fauna-gql-upload","version":"1.5.0","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","node-fetch":"^2.6.0","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","jest":"^26.0.1"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"c446189070e0e30dad766cb98c4b64443437c7f8","_id":"fauna-gql-upload@1.5.0","_nodeVersion":"13.10.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-Q1eb4i8dYJ86Kt41yZx/NzIa1MTI8zTNPLSxTo3XAJWZS6WsF1FDz8YHJ21gYF18ZLaA/PvNcpkoMKPwl58RbQ==","shasum":"a282ec0e6148c766b38dc49ba47e54601bd6d56c","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.5.0.tgz","fileCount":16,"unpackedSize":20037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfAbyQCRA9TVsSAnZWagAABsUQAJr4Z7G4/SNUnkkDBBXI\nYbzKlifEbjJ+k71+/ksbGb9WZNbZm0U54hLjKwQ3ryQRd2m+UBh9xE1m3GCX\nhMXDU+6U3yG0/HTW07Bld2yF+ZdNu2sQmcBGJ5wPnsHyze5th7chQgtIZFLW\ns/tfAJWwMP6XwZz+shiSFaa8UnDg5/FJJwRquYew8336KzIhT8uNv7HSoIsU\nEwecPM1lPsTHe/Qr3Kn//DOY6IarH0D5EjcWRaVZqq7yMifMxqaDx94bNxjw\nnbxbc4VFQBU16D9amwKgpK9Y6OG13ULnkYKMvgTB6LDoQpmJ/X8Eh2/TvH1z\nAluyjEOMljuFhMEJkuwUpkfqMlDMGnDV20kUm6vE9isDPDxPXD5AQ3eEvM2h\n5RQ8E1vCIh/7Z3cqXp4BVyMgv5gy/l+PHYcUJ+NFBCCxF4JaxIz9dwF3HRkp\n/1EM7ptrCRJBoeC+G33pPANmi7w5/P6quu5gxBbWzJohTDVgel4/H8PRklNq\nC14LMJKBaKaaj/Vs8cwrdu8qUb1Zgq5IceuVVeOcT7rlSOwdL59O47mhHcuM\nwFOBsvvd2zVJVLNGud+S0ouOpTlWUXpxc9qLbRlMmDfvQsBWoktZAy82pQHo\noBw8WiuifSWib8nDS0DyBI8ii9lXItI+TM2JXMS3h/rrb5KcOPpTFS90VxJl\niN+k\r\n=ycgG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIG2q4RM8wc2oXeXm53UxJyZkD5pTxTViOD3Lq2OruMwIgG9wYHAfybDm8d7ryv6W7WAEk9Hhnmjmic7CKSBwo+sQ="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.5.0_1593949328102_0.1743622838857839"},"_hasShrinkwrap":false},"1.5.1":{"name":"fauna-gql-upload","version":"1.5.1","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","node-fetch":"^2.6.0","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","jest":"^26.0.1"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"9366657cd4dd1a816d56afc08b1f2452847ac295","_id":"fauna-gql-upload@1.5.1","_nodeVersion":"13.10.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-si4L/YNS/Ih6h9lvZJ1SuBmvXlflkFMpfqevnQw6pxcVGDkOoOSiSRh7JcMFAkgtxEnvZ/ObrZ9PoueNj3jfUw==","shasum":"03fa4dce577cb5fd122dccb7ff6575ba65516c5c","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.5.1.tgz","fileCount":16,"unpackedSize":19992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfAb8ACRA9TVsSAnZWagAA5nkP/0y8rKpGWXWKRBm6fkPX\ngsmoEwhbpyxUSkSDcx4OYdwshIbVjjxOx2sGrK0s+ul4F9c+R/9aSJJjczUE\noXxZb04AWZhC6h2b6eMbsx/lAqywXqn366o4mZSddQD7ZVOiATkcRF71EBVk\nIQPrC/pOlJNQ6CY08j9NOaW4UyglBafVh5kMxcuYj89FTBRRQYYGJm7gkMih\nEfdmB/t+HQPLjxnYbcBLO/AvPeL/TSLIcUV/zKrA+8iqksnc+MIt/MrmJgnf\nkFTrmkbTMA3b1cUzMWvVbuI45eHk50+46eRKXpWlryvjh+eer8XD0T6x7G8x\nCK9bvHKaCBFBHkXYQ2WBEEmmQIvJb9m+s8Usztws+lSnG4Pj43ohspdFUcGX\nwrfPZ9joGQ3VeYbwO6D/zZpxZTlGM4rXWSLOMApF5g3Q5/s6FXsM1eBiUlo5\nZkA556V0Q53I5Cs3ZhzOqmBx0QAQ/iMYE+FU4IU1KGCSpNaysZjBqQ5cRatj\nZUdit+c3UjLXJOfaX8jXWtvUSr+eLzqlIs5CThtdA3s+b88s05wIQ0ukeqAl\nmQ5BYz4YTzYiqbwR4CgZ8vS+vEz4dCA+QmeE0WcXqoVsR9esb2FEKuzK6FN9\nt54RqgRJqQhOrMYMJq+1yj7y8CUU389WGTEI2HRi1/TBnwwTYxaWgbkkEAlY\n0BfQ\r\n=tSB4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDd6Yqy3/KhxFVn+yC0HkXrHypH7qBRayFrnxqdqfR2bgIgN45I/VHSrjygCu/JE9OUS/ZMl2V7stZYxAyvy79F/eM="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.5.1_1593949951596_0.6248627314802864"},"_hasShrinkwrap":false},"1.6.0":{"name":"fauna-gql-upload","version":"1.6.0","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","node-fetch":"^2.6.0","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","jest":"^26.0.1"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"c0f6ad844011ecb50fc8d1dab29863e5041eff3c","_id":"fauna-gql-upload@1.6.0","_nodeVersion":"13.10.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-iYdO1WbEh1mdWIrdJZfq49awVrAy95f/DzXS7NwWXteQzxE/gu0thmgX3ZegC34zV/Y5ALv+pSu1OOU9C2nATw==","shasum":"01b82542bfd43f863919a48f5174601c8a46a939","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.6.0.tgz","fileCount":16,"unpackedSize":20929,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDtypCRA9TVsSAnZWagAA87oP/A7UjnlYfR60B9WW967k\nN7Z/iWXH9VVdNGop64j5dl8ojy2sB1ywZzPDuaoCHjkUTDFlwP6gFsAue7i9\nJ+OMBvo5vXYEiadHIa4Tmq2DwvxmSXUIukSCXMRRXxR5ICXdV4/6kgWytSKx\nxpVjnASve6HiX+LcfSqZo/57XqDcOKa6MJuakHVC+BdI1y6wv64XdRzySKfM\n9rj68/Gk/JE6o7tot0d2oBElHgYaRvAg9XAsKOEO4/CdFBQGjSwrCzKoNAVw\n4TV74D6Q4QrRrbXvlRmwQUdspK8hnZV9mv+xcyJ0mkI6awz0ky4LVyNmvS2S\n/tgekc4m4Rd8Qm3PMNhvLDx1wXrjRuaYAMWJ8kdyfAK1aOkLsEGYHSbyvp+g\nkSkwdPTbINnk5zA0pPcIQYKq9hqRtQJXlvZUHYWY+pmJEApaRElIVTLZLJ2B\n8GDkshiougMgWlkl1YPfBiblF9Krr3eJ2AFWt9oUp/8Owenr/UjvYjEkXslR\niScPc61/aLvGUlqAN42e4WNx+MihFv/Gqz3VxhMSRq6r+W+qMMUhZ/oJWimT\nGw2fqU9RTognO951jP+EReyvGmOsjsurfHbEqcoOrVswigaO1PR1HaZhtvNE\nrGGs5QAwPIpnTWXWX4xNlSi6cLzGD6ONcndYnZ5oba7tUX7FLimO8Cyp7LbH\nNTFK\r\n=6r5x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCf7UMbpZprYWj5p/eZYhm9oDXtfJaiZzedSizr6C9FqwIgOHYFrmUXsGtDII+pDydTaRQwePtf+EJD2PaHRbelOiA="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.6.0_1594809513452_0.452168579810148"},"_hasShrinkwrap":false},"1.6.1":{"name":"fauna-gql-upload","version":"1.6.1","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","node-fetch":"^2.6.0","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","jest":"^26.0.1"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","readme":"# fauna-gql\r\nfauna-gql is a simple CLI to update your database's GraphQL schema, resolver functions, indexes, and database roles without going to the FaunaDB dashboard. It uses the `https://graphql.fauna.com/import` endpoint to update the schema from a file within your project, and the FQL driver for JavaScript to update/create functions, roles, and indexes.\r\n\r\n## Main features\r\n- Store all your User-defined functions, roles, and indexes within your project.\r\n- Update your schema and other resources without leaving your editor.\r\n\r\n## Install\r\nYou could install locally within your project:\r\n```sh\r\nnpm install fauna-gql-upload\r\n```\r\n\r\nor, you could install it globally\r\n```sh\r\nnpm install fauna-gql-upload -g\r\n```\r\n\r\n### Local install\r\nWhen installing locally you have to run the command using a NPM script.\r\n\r\nPackage.json:\r\n```json\r\n{\r\n  \"name\": \"my-app\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"fauna\": \"fauna-gql\"\r\n  }\r\n}\r\n```\r\n\r\nRunning it:\r\n```sh\r\nnpm run fauna\r\n```\r\n\r\n### Global install\r\nWhen installing globally, all you have to do is run the command:\r\n```sh\r\nfauna-gql\r\n```\r\n\r\n## Configuration\r\nFor the command to work properly, you need to have certain information in your project.\r\n\r\n1. You need a `.env` file with a variable called `FAUNADB_SECRET`.\r\n2. You need a valid schema file to upload. This file should be located at `fauna/schema.gql` relative to the working directory where the command is executed.\r\n3. To upload functions, you need a directory called `fauna/functions`. Within this directory, you should have one `.js` file for each of you functions. See [Uploading Functions](#uploading-functions) for an example of such a file.\r\n4. To upload roles, you need a directory called `fauna/roles`. Within this directory, you should have one `.js` file for each of your roles. See [Uploading Roles](#uploading-roles) for an example of such a file.\r\n5. To upload indexes, you need a directory called `fauna/indexes`. Within this directory, you should have one `.js` file for each of your indexes. See [Uploading indexes](#uploading-indexes) for an example of such a file.\r\n\r\nCreating a `.fauna.json` file allows you to set:\r\n- the path to your `.env` file\r\n- FaunaDB secret environment variable name\r\n- another path for the schema\r\n- another functions directory\r\n- another indexes directory\r\n\r\nThe `.fauna.json` file takes the following properties:\r\n\r\n```json\r\n{\r\n\t\"envPath\": \".env\",\r\n\t\"secretEnv\": \"FAUNADB_SECRET\",\r\n\t\"schemaPath\": \"fauna/schema.gql\",\r\n\t\"fnsDir\": \"fauna/functions\",\r\n\t\"rolesDir\": \"fauna/roles\",\r\n\t\"indexesDir\": \"fauna/indexes\"\r\n}\r\n```\r\n\r\nThese would now take precedent over the default values.\r\n\r\n## Usage\r\n\r\n### Uploading schema\r\nTo upload your schema, it has to be placed at `fauna/schema.gql` or the path specified in `.fauna.json`. It also needs to be valid (of course), otherwise you would get back an error. For more information on writing a GraphQL schema for FaunaDB, see the [official documentation](https://docs.fauna.com/fauna/current/api/graphql/).\r\n\r\n#### Overriding the schema\r\nIf you need to make schema changes that are not compatible with the previous versions of the schema, you might have to override it. This can be done by adding a `--override` flag when running the command.\r\n\r\nLike so:\r\n```sh\r\nfauna-gql --override\r\n```\r\n\r\nIf you are running the command locally with npm, you need to add the flag to the npm script.\r\n```json\r\n{\r\n  \"name\": \"my-app\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"fauna\": \"fauna-gql\",\r\n    \"fauna-override\": \"fauna-gql --override\",\r\n  }\r\n}\r\n```\r\n\r\nand then run:\r\n```sh\r\nnpm run fauna-override\r\n```\r\n\r\nSince overriding the schema removes all collections, functions, and indexes, you will be asked to confirm your intention. In certain situations though, you'd want to skip this confirmation, like in a CI/CD pipeline. Therefore, you can use the `-y` flag to override the prompt and go forward with the opration without questions.\r\n\r\nIt would look like this:\r\n```sh\r\nfauna-gql --override -y\r\n```\r\n\r\n### Uploading functions\r\nTo upload functions, you need a to have a `fauna/functions` directory containing `.js` files that describe your function's name, role, and body. As mentioned earlier, it is possible to customize the functions path by adding a `fnsDir` property to the `.fauna.json` file.\r\n\r\nFor your functions to work, you need to `require(\"faunadb\")` inside each of the function files, and use the functions inside `fauna.query` to build your function. Take a look at the following example:\r\n```js\r\nconst{ query } = require(\"faunadb\");\r\nconst{ Query, Lambda, Let, Identity, Select, Get, Var } = query;\r\n\r\nmodule.exports = {\r\n\tname: \"current_user\",\r\n\tbody:\r\n\tQuery(\r\n\t\tLambda([], Let({ userRef: Identity() }, Select([], Get(Var(\"userRef\")))))\r\n\t)\r\n};\r\n\r\n```\r\nThis function would return the currently authenticated user. \r\n\r\nAs you can see, you need to export an object containing the name of the function, as well as the body of the function. See the [Fauna documentation](https://docs.fauna.com/fauna/current/api/fql/functions/createfunction) for a full reference on the accepted properties.\r\n\r\n### Uploading roles\r\nTo upload roles, you need a `fauna/roles` directory containing a `.js` file for each of your roles. These files describe the role and look like the following example.\r\n\r\n```js\r\nconst{ query } = require(\"faunadb\");\r\nconst { Collection } = query;\r\nconst onlyDeleteByOwner = require(\"../predicates/onlyDeleteByOwner\");\r\n\r\nmodule.exports = {\r\n\tname: \"user\",\r\n\tprivileges: [\r\n\t\t{\r\n\t\t\tresource: Collection(\"Comment\"),\r\n\t\t\tactions: {\r\n\t\t\t\tread: true,\r\n\t\t\t\tcreate: true,\r\n\t\t\t\tdelete: onlyDeleteByOwner\r\n\t\t\t}\r\n\t\t}\r\n\t]\r\n}\r\n```\r\nAs with the functions, you need to include certain functions from the `faunadb` driver. \r\n\r\n### Uploading indexes\r\nTo upload indexes, you need a `fauna/indexes` directory containing a `.js` file for each of your roles. These files describe the role and look like the following example.\r\n\r\n```js\r\nconst { query } = require(\"faunadb\");\r\nconst { Collection } = query;\r\n\r\nmodule.exports = {\r\n\tname: \"people_sort_by_age_asc\",\r\n\tsource: Collection(\"People\"),\r\n\tvalues: [\r\n\t\t{ field: [\"data\", \"age\"] },\r\n\t\t{ field: [\"ref\"] }\r\n\t]\r\n}\r\n```\r\n\r\nFauna does actually create indexes based on your schema. But in certain situations it might be necessary to create custom indexes. The index above sorts people in ascending order by their age.\r\n\r\n#### Predicate functions\r\nAnother detail that you've probably noticed is the `onlyDeleteByOwner` function. This is a [predicate function](https://docs.fauna.com/fauna/current/security/roles#mco). It lets you define your own permissions based on the user making the request and the document's fields. You would normally have to write these inline with the permissions. But in this case, we can create these in seperate files and reuse them multiple times for different resources.\r\n\r\nThe `onlyDeleteByOwner.js` file would like this:\r\n```js\r\nconst{ query } = require(\"faunadb\");\r\nconst{ Query, Lambda, Equals, Identity, Select, Get, Var } = query;\r\n\r\nmodule.exports = Query(\r\n\tLambda(\r\n\t\t\"ref\",\r\n\t\tEquals(Identity(), Select([\"data\", \"user\"], Get(Var(\"ref\"))))\r\n\t)\r\n);\r\n```\r\n\r\n## Get in touch\r\nIf you want to get in touch with me, feel free to reach out to me one Twitter([@chj_web](https://twitter.com/chj_web)).\r\n","readmeFilename":"README.md","gitHead":"5ed368751df60c5b03cacba994e1685cbc9041ae","_id":"fauna-gql-upload@1.6.1","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-v4OqJ3a/3L9Xg45w0tl91oMcI9IhDV1HGdNOZF8p2K/1ea8NJkYXfVGt21i7GT7xFOIWqJZdyD0ihzjVd+wPSQ==","shasum":"e0518d1439a7418d63f359e54c48b8f63058ffbc","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.6.1.tgz","fileCount":17,"unpackedSize":20945,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfP3mtCRA9TVsSAnZWagAAvXMP/2AJnH+bUvNbkAZDk2dq\nywcbffwEBaHdYzvWvRiELeKB1+zshP921/PuwtwJlVstw4nFDxS+xvm0NWea\nhKcRzWksvO/TH1JrwUlI+ZFxf5ZQkWHhjGVsPIhwz8bzxoW9ki9fyPq0h+RC\nZyzuFXQlNjvEJ5x/dANM6ybhnezTzxKCw3BLuq+l6bTgiaEDm0nTe8begMEz\nFNN1zTe/e3euyoTTsBrejHUh7CCFoE6G68LtdslsDqQjmjZ/myjx0D75die9\nbLoeCxdVQRguw3wwCNEhbLL4XQsyio7OH4IgbMEKEY0fETLA5kw4PsCEmr0i\nEzjLAfbu33e1PVN+P2Cmcn8N1ac1Q1LMV+8emqSXXRorSzZ4qmArZgfbynRn\nX/RFEqz/U/0l6BNOEC45SHh3X8lt/hsI868zi0vKZ7HhHf8zpjUzzDKNEOtk\nlxysXSVHPbEESGvBklBTxV8QvAK7xAbBsQv/6/VaIF9N0Kd4fd6gx2jn9KvH\nj88dHd3n45cpWVbEwNPoWHGikmQjmcOkEoVcE8eWSQ0a4AOvQi6rl3Jsjlh0\n9RISi9gSk4N9O29FSzhi3I8FIXDGh1p/jhi0cWiA75yiBcV7fzJhXX2JvqTq\nXTzK9DtD7kfPyu21Ed+NE8GkfSGqJV1yFxNK5TPEVXvTTkEaN/GdHoyaWzI1\ny+EN\r\n=begJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDhyN8J3PVzIh5XwLenRg4+UKIj2qbu1hd9hY6UpQPuiAiAovHXWVnlS1vd6OrnUivrTe7214oXcVayYQytk9BOb3w=="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.6.1_1597995436595_0.5261270573002748"},"_hasShrinkwrap":false},"1.6.2":{"name":"fauna-gql-upload","version":"1.6.2","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","node-fetch":"^2.6.0","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","jest":"^26.0.1"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","readme":"# fauna-gql\r\nfauna-gql is a simple CLI to update your database's GraphQL schema, resolver functions, indexes, and database roles without going to the FaunaDB dashboard. It uses the `https://graphql.fauna.com/import` endpoint to update the schema from a file within your project, and the FQL driver for JavaScript to update/create functions, roles, and indexes.\r\n\r\n## Main features\r\n- Store all your User-defined functions, roles, and indexes within your project.\r\n- Update your schema and other resources without leaving your editor.\r\n\r\n## Install\r\nYou could install locally within your project:\r\n```sh\r\nnpm install fauna-gql-upload\r\n```\r\n\r\nor, you could install it globally\r\n```sh\r\nnpm install fauna-gql-upload -g\r\n```\r\n\r\n### Local install\r\nWhen installing locally you have to run the command using a NPM script.\r\n\r\nPackage.json:\r\n```json\r\n{\r\n  \"name\": \"my-app\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"fauna\": \"fauna-gql\"\r\n  }\r\n}\r\n```\r\n\r\nRunning it:\r\n```sh\r\nnpm run fauna\r\n```\r\n\r\n### Global install\r\nWhen installing globally, all you have to do is run the command:\r\n```sh\r\nfauna-gql\r\n```\r\n\r\n## Configuration\r\nFor the command to work properly, you need to have certain information in your project.\r\n\r\n1. You need a `.env` file with a variable called `FAUNADB_SECRET`.\r\n2. You need a valid schema file to upload. This file should be located at `fauna/schema.gql` relative to the working directory where the command is executed.\r\n3. To upload functions, you need a directory called `fauna/functions`. Within this directory, you should have one `.js` file for each of you functions. See [Uploading Functions](#uploading-functions) for an example of such a file.\r\n4. To upload roles, you need a directory called `fauna/roles`. Within this directory, you should have one `.js` file for each of your roles. See [Uploading Roles](#uploading-roles) for an example of such a file.\r\n5. To upload indexes, you need a directory called `fauna/indexes`. Within this directory, you should have one `.js` file for each of your indexes. See [Uploading indexes](#uploading-indexes) for an example of such a file.\r\n\r\nCreating a `.fauna.json` file allows you to set:\r\n- the path to your `.env` file\r\n- FaunaDB secret environment variable name\r\n- another path for the schema\r\n- another functions directory\r\n- another indexes directory\r\n\r\nThe `.fauna.json` file takes the following properties:\r\n\r\n```json\r\n{\r\n\t\"envPath\": \".env\",\r\n\t\"secretEnv\": \"FAUNADB_SECRET\",\r\n\t\"schemaPath\": \"fauna/schema.gql\",\r\n\t\"fnsDir\": \"fauna/functions\",\r\n\t\"rolesDir\": \"fauna/roles\",\r\n\t\"indexesDir\": \"fauna/indexes\"\r\n}\r\n```\r\n\r\nThese would now take precedent over the default values.\r\n\r\n## Usage\r\n\r\n### Uploading schema\r\nTo upload your schema, it has to be placed at `fauna/schema.gql` or the path specified in `.fauna.json`. It also needs to be valid (of course), otherwise you would get back an error. For more information on writing a GraphQL schema for FaunaDB, see the [official documentation](https://docs.fauna.com/fauna/current/api/graphql/).\r\n\r\n#### Overriding the schema\r\nIf you need to make schema changes that are not compatible with the previous versions of the schema, you might have to override it. This can be done by adding a `--override` flag when running the command.\r\n\r\nLike so:\r\n```sh\r\nfauna-gql --override\r\n```\r\n\r\nIf you are running the command locally with npm, you need to add the flag to the npm script.\r\n```json\r\n{\r\n  \"name\": \"my-app\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"fauna\": \"fauna-gql\",\r\n    \"fauna-override\": \"fauna-gql --override\",\r\n  }\r\n}\r\n```\r\n\r\nand then run:\r\n```sh\r\nnpm run fauna-override\r\n```\r\n\r\nSince overriding the schema removes all collections, functions, and indexes, you will be asked to confirm your intention. In certain situations though, you'd want to skip this confirmation, like in a CI/CD pipeline. Therefore, you can use the `-y` flag to override the prompt and go forward with the opration without questions.\r\n\r\nIt would look like this:\r\n```sh\r\nfauna-gql --override -y\r\n```\r\n\r\n### Uploading functions\r\nTo upload functions, you need a to have a `fauna/functions` directory containing `.js` files that describe your function's name, role, and body. As mentioned earlier, it is possible to customize the functions path by adding a `fnsDir` property to the `.fauna.json` file.\r\n\r\nFor your functions to work, you need to `require(\"faunadb\")` inside each of the function files, and use the functions inside `fauna.query` to build your function. Take a look at the following example:\r\n```js\r\nconst{ query } = require(\"faunadb\");\r\nconst{ Query, Lambda, Let, Identity, Select, Get, Var } = query;\r\n\r\nmodule.exports = {\r\n\tname: \"current_user\",\r\n\tbody:\r\n\tQuery(\r\n\t\tLambda([], Let({ userRef: Identity() }, Select([], Get(Var(\"userRef\")))))\r\n\t)\r\n};\r\n\r\n```\r\nThis function would return the currently authenticated user. \r\n\r\nAs you can see, you need to export an object containing the name of the function, as well as the body of the function. See the [Fauna documentation](https://docs.fauna.com/fauna/current/api/fql/functions/createfunction) for a full reference on the accepted properties.\r\n\r\n### Uploading roles\r\nTo upload roles, you need a `fauna/roles` directory containing a `.js` file for each of your roles. These files describe the role and look like the following example.\r\n\r\n```js\r\nconst{ query } = require(\"faunadb\");\r\nconst { Collection } = query;\r\nconst onlyDeleteByOwner = require(\"../predicates/onlyDeleteByOwner\");\r\n\r\nmodule.exports = {\r\n\tname: \"user\",\r\n\tprivileges: [\r\n\t\t{\r\n\t\t\tresource: Collection(\"Comment\"),\r\n\t\t\tactions: {\r\n\t\t\t\tread: true,\r\n\t\t\t\tcreate: true,\r\n\t\t\t\tdelete: onlyDeleteByOwner\r\n\t\t\t}\r\n\t\t}\r\n\t]\r\n}\r\n```\r\nAs with the functions, you need to include certain functions from the `faunadb` driver. \r\n\r\n### Uploading indexes\r\nTo upload indexes, you need a `fauna/indexes` directory containing a `.js` file for each of your roles. These files describe the role and look like the following example.\r\n\r\n```js\r\nconst { query } = require(\"faunadb\");\r\nconst { Collection } = query;\r\n\r\nmodule.exports = {\r\n\tname: \"people_sort_by_age_asc\",\r\n\tsource: Collection(\"People\"),\r\n\tvalues: [\r\n\t\t{ field: [\"data\", \"age\"] },\r\n\t\t{ field: [\"ref\"] }\r\n\t]\r\n}\r\n```\r\n\r\nFauna does actually create indexes based on your schema. But in certain situations it might be necessary to create custom indexes. The index above sorts people in ascending order by their age.\r\n\r\n#### Predicate functions\r\nAnother detail that you've probably noticed is the `onlyDeleteByOwner` function. This is a [predicate function](https://docs.fauna.com/fauna/current/security/roles#mco). It lets you define your own permissions based on the user making the request and the document's fields. You would normally have to write these inline with the permissions. But in this case, we can create these in seperate files and reuse them multiple times for different resources.\r\n\r\nThe `onlyDeleteByOwner.js` file would like this:\r\n```js\r\nconst{ query } = require(\"faunadb\");\r\nconst{ Query, Lambda, Equals, Identity, Select, Get, Var } = query;\r\n\r\nmodule.exports = Query(\r\n\tLambda(\r\n\t\t\"ref\",\r\n\t\tEquals(Identity(), Select([\"data\", \"user\"], Get(Var(\"ref\"))))\r\n\t)\r\n);\r\n```\r\n\r\n## Get in touch\r\nIf you want to get in touch with me, feel free to reach out to me one Twitter([@chj_web](https://twitter.com/chj_web)).\r\n","readmeFilename":"README.md","gitHead":"25028928c4f3bc2b612fa86c69740e92991149f8","_id":"fauna-gql-upload@1.6.2","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-vdHEoy8xm+TDyn/EHHYcgeSrWXNu/QB53/R4BS6/MKs3n6xhJSOcZ/DsnK324N/rVTn9aX+79hk0p7P3cxT7dw==","shasum":"fb4b45671e3a97681daa9d41c20a109ad1858efe","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.6.2.tgz","fileCount":13,"unpackedSize":16121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQ/CoCRA9TVsSAnZWagAA3jsQAKOBnL+v/s/bZSJewi5D\n3PCMiXaflQfZlzvv8uviTvEkwhDiMrBmE4AIffigGuPoxlndP8OGV+TAbx0D\nNb4oYxuftit8tYsIL6F1e41x1zF2FxPLpxcJPy2hvttUSVmETH5MHa4yOPCy\nUTZeCsdrynxVHL+Q9upIwbh+CEDFG1jBA4BAYfgp2MulWsujtJ+MTKtxt1XA\n2Ce1Ft00sOrtKaq0eCZxmkTvVkXfNbVRLuBWkAjwHUnjLLIzgWOcWSXn/SGD\nmBRjEUFf4CEvXq+h10nQ2W+wQiOVzgIfdDg5YfRBhI9rbQQN4eaw57m/5F+j\nwcg1/gkwXZ+MuELPHiLQzujIj5AXIaIeKBNxZzGAxh01QlLa5lW4nbWeZW6H\nr59Teklf8t7dc3mRucpBGMTbT/kJWBjhqYvL3ODbeKMLojTYa491J4xO4DHG\naj1+WRsLydlYbfz9+1CyJE2zAvE/IpdN1oWeqsVx/l6UDFHqFPQoJKFLa3I6\nBOt/JLpKDY3mkhQPSFfIuFU9t0erDGd9Vx5BpfQeGSlrzuStJJObM48sQIgv\nMd8dQCv7zY+5c7w8jqrnC0q9fC9t9WWCjUsERxWPgSxIwC7cMYdMfH0jWUfa\nkQFpGfHUz05E8z1iYfj1zbm0JPvMosvO7c3WKmPNuzlrr5/HRY8CGP8rMCjI\nkgz3\r\n=BWfV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGuTSOpo/j2s3ogRgNuk9uHEkm4Lzq/MVfKlVg5GJNQNAiA/AaI9Q+XDZBmsEuORGvf33thlOXVP5uCe0stxxLz9wg=="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.6.2_1598288039983_0.29932821120732367"},"_hasShrinkwrap":false},"1.6.3":{"name":"fauna-gql-upload","version":"1.6.3","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","node-fetch":"^2.6.0","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","jest":"^26.0.1"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","readme":"# fauna-gql\r\nfauna-gql is a simple CLI to update your database's GraphQL schema, resolver functions, indexes, and database roles without going to the FaunaDB dashboard. It uses the `https://graphql.fauna.com/import` endpoint to update the schema from a file within your project, and the FQL driver for JavaScript to update/create functions, roles, and indexes.\r\n\r\n## Main features\r\n- Store all your User-defined functions, roles, and indexes within your project.\r\n- Update your schema and other resources without leaving your editor.\r\n\r\n## Install\r\nYou could install locally within your project:\r\n```sh\r\nnpm install fauna-gql-upload\r\n```\r\n\r\nor, you could install it globally\r\n```sh\r\nnpm install fauna-gql-upload -g\r\n```\r\n\r\n### Local install\r\nWhen installing locally you have to run the command using a NPM script.\r\n\r\nPackage.json:\r\n```json\r\n{\r\n  \"name\": \"my-app\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"fauna\": \"fauna-gql\"\r\n  }\r\n}\r\n```\r\n\r\nRunning it:\r\n```sh\r\nnpm run fauna\r\n```\r\n\r\n### Global install\r\nWhen installing globally, all you have to do is run the command:\r\n```sh\r\nfauna-gql\r\n```\r\n\r\n## Configuration\r\nFor the command to work properly, you need to have certain information in your project.\r\n\r\n1. You need a `.env` file with a variable called `FAUNADB_SECRET`.\r\n2. You need a valid schema file to upload. This file should be located at `fauna/schema.gql` relative to the working directory where the command is executed.\r\n3. To upload functions, you need a directory called `fauna/functions`. Within this directory, you should have one `.js` file for each of you functions. See [Uploading Functions](#uploading-functions) for an example of such a file.\r\n4. To upload roles, you need a directory called `fauna/roles`. Within this directory, you should have one `.js` file for each of your roles. See [Uploading Roles](#uploading-roles) for an example of such a file.\r\n5. To upload indexes, you need a directory called `fauna/indexes`. Within this directory, you should have one `.js` file for each of your indexes. See [Uploading indexes](#uploading-indexes) for an example of such a file.\r\n\r\nCreating a `.fauna.json` file allows you to set:\r\n- the path to your `.env` file\r\n- FaunaDB secret environment variable name\r\n- another path for the schema\r\n- another functions directory\r\n- another indexes directory\r\n\r\nThe `.fauna.json` file takes the following properties:\r\n\r\n```json\r\n{\r\n\t\"envPath\": \".env\",\r\n\t\"secretEnv\": \"FAUNADB_SECRET\",\r\n\t\"schemaPath\": \"fauna/schema.gql\",\r\n\t\"fnsDir\": \"fauna/functions\",\r\n\t\"rolesDir\": \"fauna/roles\",\r\n\t\"indexesDir\": \"fauna/indexes\"\r\n}\r\n```\r\n\r\nThese would now take precedent over the default values.\r\n\r\n## Usage\r\n\r\n### Uploading schema\r\nTo upload your schema, it has to be placed at `fauna/schema.gql` or the path specified in `.fauna.json`. It also needs to be valid (of course), otherwise you would get back an error. For more information on writing a GraphQL schema for FaunaDB, see the [official documentation](https://docs.fauna.com/fauna/current/api/graphql/).\r\n\r\n#### Overriding the schema\r\nIf you need to make schema changes that are not compatible with the previous versions of the schema, you might have to override it. This can be done by adding a `--override` flag when running the command.\r\n\r\nLike so:\r\n```sh\r\nfauna-gql --override\r\n```\r\n\r\nIf you are running the command locally with npm, you need to add the flag to the npm script.\r\n```json\r\n{\r\n  \"name\": \"my-app\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"fauna\": \"fauna-gql\",\r\n    \"fauna-override\": \"fauna-gql --override\",\r\n  }\r\n}\r\n```\r\n\r\nand then run:\r\n```sh\r\nnpm run fauna-override\r\n```\r\n\r\nSince overriding the schema removes all collections, functions, and indexes, you will be asked to confirm your intention. In certain situations though, you'd want to skip this confirmation, like in a CI/CD pipeline. Therefore, you can use the `-y` flag to override the prompt and go forward with the opration without questions.\r\n\r\nIt would look like this:\r\n```sh\r\nfauna-gql --override -y\r\n```\r\n\r\n### Uploading functions\r\nTo upload functions, you need a to have a `fauna/functions` directory containing `.js` files that describe your function's name, role, and body. As mentioned earlier, it is possible to customize the functions path by adding a `fnsDir` property to the `.fauna.json` file.\r\n\r\nFor your functions to work, you need to `require(\"faunadb\")` inside each of the function files, and use the functions inside `fauna.query` to build your function. Take a look at the following example:\r\n```js\r\nconst{ query } = require(\"faunadb\");\r\nconst{ Query, Lambda, Let, Identity, Select, Get, Var } = query;\r\n\r\nmodule.exports = {\r\n\tname: \"current_user\",\r\n\tbody:\r\n\tQuery(\r\n\t\tLambda([], Let({ userRef: Identity() }, Select([], Get(Var(\"userRef\")))))\r\n\t)\r\n};\r\n\r\n```\r\nThis function would return the currently authenticated user. \r\n\r\nAs you can see, you need to export an object containing the name of the function, as well as the body of the function. See the [Fauna documentation](https://docs.fauna.com/fauna/current/api/fql/functions/createfunction) for a full reference on the accepted properties.\r\n\r\n### Uploading roles\r\nTo upload roles, you need a `fauna/roles` directory containing a `.js` file for each of your roles. These files describe the role and look like the following example.\r\n\r\n```js\r\nconst{ query } = require(\"faunadb\");\r\nconst { Collection } = query;\r\nconst onlyDeleteByOwner = require(\"../predicates/onlyDeleteByOwner\");\r\n\r\nmodule.exports = {\r\n\tname: \"user\",\r\n\tprivileges: [\r\n\t\t{\r\n\t\t\tresource: Collection(\"Comment\"),\r\n\t\t\tactions: {\r\n\t\t\t\tread: true,\r\n\t\t\t\tcreate: true,\r\n\t\t\t\tdelete: onlyDeleteByOwner\r\n\t\t\t}\r\n\t\t}\r\n\t]\r\n}\r\n```\r\nAs with the functions, you need to include certain functions from the `faunadb` driver. \r\n\r\n### Uploading indexes\r\nTo upload indexes, you need a `fauna/indexes` directory containing a `.js` file for each of your roles. These files describe the role and look like the following example.\r\n\r\n```js\r\nconst { query } = require(\"faunadb\");\r\nconst { Collection } = query;\r\n\r\nmodule.exports = {\r\n\tname: \"people_sort_by_age_asc\",\r\n\tsource: Collection(\"People\"),\r\n\tvalues: [\r\n\t\t{ field: [\"data\", \"age\"] },\r\n\t\t{ field: [\"ref\"] }\r\n\t]\r\n}\r\n```\r\n\r\nFauna does actually create indexes based on your schema. But in certain situations it might be necessary to create custom indexes. The index above sorts people in ascending order by their age.\r\n\r\n#### Predicate functions\r\nAnother detail that you've probably noticed is the `onlyDeleteByOwner` function. This is a [predicate function](https://docs.fauna.com/fauna/current/security/roles#mco). It lets you define your own permissions based on the user making the request and the document's fields. You would normally have to write these inline with the permissions. But in this case, we can create these in seperate files and reuse them multiple times for different resources.\r\n\r\nThe `onlyDeleteByOwner.js` file would like this:\r\n```js\r\nconst{ query } = require(\"faunadb\");\r\nconst{ Query, Lambda, Equals, Identity, Select, Get, Var } = query;\r\n\r\nmodule.exports = Query(\r\n\tLambda(\r\n\t\t\"ref\",\r\n\t\tEquals(Identity(), Select([\"data\", \"user\"], Get(Var(\"ref\"))))\r\n\t)\r\n);\r\n```\r\n\r\n## Get in touch\r\nIf you want to get in touch with me, feel free to reach out to me one Twitter([@chj_web](https://twitter.com/chj_web)).\r\n","readmeFilename":"README.md","gitHead":"aa6d0c9ae22a0b0cbf2fa327683974b6ff404873","_id":"fauna-gql-upload@1.6.3","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YbCsRJxUcvGtyaUB6xmbD/d7XIB/sfa3nZLP0hPKAY4N/GUfNfogUQFnQaFTPnOUagsa0vHMydeLkg5whF2ZxA==","shasum":"f7992c216fb985a3fb82541ddcd3c8bf8d8adc03","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.6.3.tgz","fileCount":13,"unpackedSize":16424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQ/3JCRA9TVsSAnZWagAAH9UP/1dLNn0FM+IXdLkuHA8L\n7HlqnwXoN171OQXt67EXQE1sLMMAk79uuZWOqiK4NaPlRPwVY3U+6TPSi5vk\ndHS0M0E1dnpOUOVXH+2QO4sGQSBUYP7EjGKobSVFTc3bN2X4N07xs4YwGMjX\nL2KAUkSsHL4SiIaSEw4ykzm4/pMW7h/XlpnhfC/o9otQu/yeRCC7/dLENjyT\nccjYSjMU0JCR9MpB6n0coeCI+rTkHqJFYJ341keaqjWD46IDpIbeGb96RPV+\nvZgHOInj9yHl1wvpOmC/tInrI+0gDpRIw02m+wSyo00eNphbUSJir62Ndj78\nQuvBh4zGNrk44/W6YZ14eoNiFCB/2kWy3Ya25WZK41RAZro2zB7E5EV5EPjt\naPoF3H9zpRWDEbXw5e1iAe9+DCuCJEoL6+SwHGDQfhmnLEKSYN808E3wJSst\nfcP8AgPtY10CqTgTxZxNa9ud8eHYOypnrI8dPhBx1HFRo3vsd3nyu0TelDgo\nlbPuL4wC8QswApc5BbtOSeFgZmMk4HrV73VLmsgRIVYHe+CoZ2Jq23Ks/mJ8\nNnHl1K28WNPiaGPMU8UK1oY5zDzDZZsvL6cxBUDcZMBmGj7f3FCnRNCWukve\nIsguFC77WnXk/9UpC4uAhyWj0c24z76lVl4j+aDWwk0g5IdUplODcvOdgTJd\nk0Gg\r\n=Wd4l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD78Bu3p5p/eImIkCuyVAADcHmRhB8ca6JMJAQUagAIugIgdUYQgwmTGjX//m95OqVTGL3Pysouq0H8yvo1mrHuyEM="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.6.3_1598291401190_0.568763387513354"},"_hasShrinkwrap":false},"1.7.0":{"name":"fauna-gql-upload","version":"1.7.0","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","node-fetch":"^2.6.0","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","jest":"^26.0.1"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"d7c79051781f9b0b02edbf47984a8780f854ab27","_id":"fauna-gql-upload@1.7.0","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-lk3ocOPe000pYZkhIFYH8XdAmfbCAW6miAwEenqoQU9m8mRl8EP8iGa36uFFjArgDb/mV0QDYMDUK6sNMcPVoA==","shasum":"a71f676ca63e1b61c9626431560f17387c8fbac7","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.7.0.tgz","fileCount":13,"unpackedSize":16374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUPDZCRA9TVsSAnZWagAAE0oP/jlS1s5K2qUFVApBPP79\nXzYgwdMgqIFRX7cZXg/aTk3ZbCpa9ujaPJDJLI5t0vj5ihqmeDYAQviqZXcU\nXLVc/UjB1Gk7nsBqt3doqHJtWUVskrzW2ZT0c9nJa2QujqzyCvEldFaDsYqQ\nPiow1St7switE55cD4h56wvu94DeMAFfxdwFDJX/i+7l9XY84JzJU8YsXK+q\n6wDZPnMXxYJI4UL0cd/AaJjUPvVXu01W/hHKOxab0qdaVDACFhzqMpa+v92N\nnps8xcwv0WRDn6VbpmCT20TlU/cEMTF0exJARCfouSp200Fh64Ynmcu/45mT\n1wlxXxsixyedH3YQfN86aUxY5mSNfU59RRA0It8rxb6mF0b2tXatrtaXIlzi\nqHjrU975R81cXPSvry1niUnNvYksET6KtXNKnpgr9EBed4Q/nSQJInNIV68/\ntU2FFsyJYzZqB4OoJK/gMQt1FaNUj8V8/8u8nnvOe4942qrejDMtWF6otZUx\ncuJnkF37Xk0HTkbybdxt4+DEWJv2ca9FFN7K4mOqZgwTR9uJ/RrAGJy3QAgs\nbHJsgK7RWB9/HMz4MuOfvli1YOh2pT9f5IqVHIfM/p3V2En41D0l9/odLVmQ\nIr6UZ9W8tBEr/90+Y/CVC7i2a3tyqShWpO4EHM1PS0mAuYnjXYcDEWtFhkJX\nrbGs\r\n=jqFC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbpeDFq9IehYWkoTH8hA5erRLDr7F5DdPB95kKaBSs2AIgdu1oCHap+4Q921JeqcO2xHSQkp/8Y5Ps5YkyHmY7iYY="}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.7.0_1599140056816_0.23278131036299543"},"_hasShrinkwrap":false},"1.8.0":{"name":"fauna-gql-upload","version":"1.8.0","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","node-fetch":"^2.6.0","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","faunadb":"^3.0.1","jest":"^26.0.1"},"peerDependencies":{"faunadb":"^3.0.0"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"66bf6e450bc6afc6db7d3fefb968be409d331af6","_id":"fauna-gql-upload@1.8.0","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-umPUXgNw97TJ7PoilMayVsKxtqGyBsjSimLBDDQGbjDh8yIQ4wQbG8l+zF8t1pVqlj9GI9fxo88xrqCtJmQo8A==","shasum":"ceae843e886d47b4c0b10937c55f964958ca0f90","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.8.0.tgz","fileCount":15,"unpackedSize":19158,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffcu1CRA9TVsSAnZWagAAddIP/j2C2vmpby8Drj4B8Cn7\nvsc0nGFWqI0yAo7aGaZwPQHIqQZTY/fXlO8M0gsgUcjHeRSvUKyGVfGeIXDq\nVdnPUo6pw4t+e9OqkItWuEgLUMPANDgsqUm6ZX1ZRYKMeXH1bUnfHOUbpMqj\nzbmnVMoTAeVqEnN4jJ5MenHEEWR5lXcYT/AtuIFGym/cUxfXXJEUeUfE8Em7\nIG1qWEC9rdVtitr5/aXkfqnevvte03yC96zBVA+VnWpyfNErCZ6mX94nBz9O\njzrfPxH1jRmC0Iwt0vDroGcWIejSN1b1QS+nccy8tpxa8pKhKGVi+Zqs6cGI\n8z1/fsJSSbO0DVPFwxySZHz8xZB4Y5OLZXaMP16PTBxWe+A1sPDYVbWmVvwN\n9aZzRu47k3zFOiWnvbx5SME6jJEhN4tfVvMTyzxOGX/OXlFUSegpHU+A/FSM\nhNWg5QRR/MGxpy7ElsUzamvdT4F+3EZ3LhVSxbGreQ1jA1e/Wsw+sxEwcQTg\nTXfk8sd6N7plbDrOrhUSJymjGxi1giTXHUT0RCHn7W4CeUoawsrJke3xIh1t\nghRXAEmWUpbvJihHvhAEu26XeBwyO6wrx95cLd/PMl5E5KIh4iwVcY0mBaNo\nEESAEG5R6D6M2K+/F0hInCDZkpH03SDQ2LcMXhcFJ1II0U70NRrOIR/WWEhS\nAjIt\r\n=ng2M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUglYvR7W2mwe4lI/5h85Gi4uxR+IL2BiVhzBTAjuCNgIhAOURG/QbbZSDyeK2IIaBURtYKF1g/WUXPb6YwDbXSCNA"}]},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.8.0_1602079669255_0.023440332104507133"},"_hasShrinkwrap":false},"1.9.0-preview":{"name":"fauna-gql-upload","version":"1.9.0-preview","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.0","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","faunadb":"^3.0.1","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":"^3.0.0"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","readme":"# fauna-gql-upload\nfauna-gql-upload is a simple CLI to update your database's GraphQL schema, resolver functions, indexes, and database roles without going to the FaunaDB dashboard. It uses the `https://graphql.fauna.com/import` endpoint to update the schema from a file within your project, and the FQL driver for JavaScript to update/create functions, roles, and indexes.\n\n## Main features\n- 🗄️ Store all your User-defined functions, roles, indexes, and domain data within your project.\n- 📜 Update your schema and other resources without leaving your editor.\n- 🔃 Easily replicate FaunaDB resources across databases and accounts.\n- 📑 Include FaunaDB resources in version control and source code.\n- ✔️ Typescript support.\n\n> **NOTE:** If you want to use this package with typescript, you do not need to build the resources manually. As of version 1.9.0, type-checking and typescript compilation is handled automatically without extra configuration. Read more about [typescript support](#typescript).\n\n## Install\nYou could install locally within your project:\n```sh\nnpm install fauna-gql-upload\n```\n\nor, you could install it globally\n```sh\nnpm install fauna-gql-upload -g\n```\n\n### Local install\nWhen installing locally you have to run the command using a NPM script.\n\nPackage.json:\n```json\n{\n  \"name\": \"my-app\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"fauna\": \"fauna-gql\"\n  }\n}\n```\n\nRunning it:\n```sh\nnpm run fauna\n```\n\n### Global install\nWhen installing globally, all you have to do is run the command:\n```sh\nfauna-gql\n```\n\n## Configuration\nFor the command to work properly, you need to have certain information in your project.\n\n1. You need a `.env` file with a variable called `FAUNADB_SECRET`.\n2. You need a valid schema file to upload. This file should be located at `fauna/schema.gql` relative to the working directory where the command is executed.\n3. To upload functions, you need a directory called `fauna/functions`. Within this directory, you should have one `.js` file for each of you functions. See [Uploading Functions](#uploading-functions) for an example of such a file.\n4. To upload roles, you need a directory called `fauna/roles`. Within this directory, you should have one `.js` file for each of your roles. See [Uploading Roles](#uploading-roles) for an example of such a file.\n5. To upload indexes, you need a directory called `fauna/indexes`. Within this directory, you should have one `.js` file for each of your indexes. See [Uploading indexes](#uploading-indexes) for an example of such a file.\n6. To upload domain data, you need a directory called `fauna/data`. Within this directory, you should have one `.js` file for each of your data sets. See [Uploading data](#uploading-data) for an example of such a file.\n\n### Config file\n\nIf you need to customize paths or set a different environment variable name for your secret key, you can create a `.fauna.json` file.\n\nIt takes the following properties:\n\n|Property|Default|Description|\n|--------|-------|-------|\n|`schemaPath`|`models/schema.gql`|Path to your GraphQL schema.\n|`secretEnv`|`FAUNADB_SECRET`|The key used to access the your FaunaDB database.\n|`tsconfigPath`|`tsconfig.json`|Path to a `tsconfig.json` file.\n|`envPath`|`.env`|Path to the environment file that holds your `secretEnv`\n|`fnsDir`|`fauna/functions`|Path to directory that holds your FQL UDFs.\n|`rolesDir`|`fauna/roles`|Path to directory that holds your FaunaDB roles\n|`dataDir`|`fauna/data`|Path to directory that holds your domain data.\n\n*All properties are optional, you can omit `.fauna.json` completely if you are happy with the defaults.*\n\n## Usage\n\n### Uploading schema\nTo upload your schema, it has to be placed at `fauna/schema.gql` or the path specified in `.fauna.json`. It also needs to be valid (of course), otherwise you would get back an error. For more information on writing a GraphQL schema for FaunaDB, see the [official documentation](https://docs.fauna.com/fauna/current/api/graphql/).\n\n#### Overriding the schema\nIf you need to make schema changes that are not compatible with the previous versions of the schema, you might have to override it. This can be done by adding a `--override` flag when running the command.\n\nLike so:\n```sh\nfauna-gql --override\n```\n\nIf you are running the command locally with npm, you need to add the flag to the npm script.\n```json\n{\n  \"name\": \"my-app\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"fauna\": \"fauna-gql\",\n    \"fauna-override\": \"fauna-gql --override\",\n  }\n}\n```\n\nand then run:\n```sh\nnpm run fauna-override\n```\n\nSince overriding the schema removes all collections, functions, and indexes, you will be asked to confirm your intention. In certain situations though, you'd want to skip this confirmation, like in a CI/CD pipeline. Therefore, you can use the `-y` flag to override the prompt and go forward with the opration without questions.\n\nIt would look like this:\n```sh\nfauna-gql --override -y\n```\n\n### Uploading functions\nTo upload functions, you need a to have a `fauna/functions` directory containing `.js` files that describe your function's name, role, and body. As mentioned earlier, it is possible to customize the functions path by adding a `fnsDir` property to the `.fauna.json` file.\n\nFor your functions to work, you need to `require(\"faunadb\")` inside each of the function files, and use the functions inside `fauna.query` to build your function. Take a look at the following example:\n```js\nconst{ query } = require(\"faunadb\");\nconst{ Query, Lambda, Let, Identity, Select, Get, Var } = query;\n\nmodule.exports = {\n\tname: \"current_user\",\n\tbody:\n\tQuery(\n\t\tLambda([], Let({ userRef: Identity() }, Select([], Get(Var(\"userRef\")))))\n\t)\n};\n\n```\nThis function would return the currently authenticated user. \n\nAs you can see, you need to export an object containing the name of the function, as well as the body of the function. See the [Fauna documentation](https://docs.fauna.com/fauna/current/api/fql/functions/createfunction) for a full reference on the accepted properties.\n\n### Uploading roles\nTo upload roles, you need a `fauna/roles` directory containing a `.js` file for each of your roles. These files describe the role and look like the following example.\n\n```js\nconst{ query } = require(\"faunadb\");\nconst { Collection } = query;\nconst onlyDeleteByOwner = require(\"../predicates/onlyDeleteByOwner\");\n\nmodule.exports = {\n\tname: \"user\",\n\tprivileges: [\n\t\t{\n\t\t\tresource: Collection(\"Comment\"),\n\t\t\tactions: {\n\t\t\t\tread: true,\n\t\t\t\tcreate: true,\n\t\t\t\tdelete: onlyDeleteByOwner\n\t\t\t}\n\t\t}\n\t]\n}\n```\nAs with the functions, you need to include certain functions from the `faunadb` driver. \n\n### Uploading indexes\nTo upload indexes, you need a `fauna/indexes` directory containing a `.js` file for each of your indexes. These files describe the index and look like the following example.\n\n```js\nconst { query } = require(\"faunadb\");\nconst { Collection } = query;\n\nmodule.exports = {\n\tname: \"people_sort_by_age_asc\",\n\tsource: Collection(\"People\"),\n\tvalues: [\n\t\t{ field: [\"data\", \"age\"] },\n\t\t{ field: [\"ref\"] }\n\t]\n}\n```\n\nFauna does actually create indexes based on your schema. But in certain situations it might be necessary to create custom indexes. The index above sorts people in ascending order by their age.\n\n#### Predicate functions\nAnother detail that you've probably noticed is the `onlyDeleteByOwner` function. This is a [predicate function](https://docs.fauna.com/fauna/current/security/roles#mco). It lets you define your own permissions based on the user making the request and the document's fields. You would normally have to write these inline with the permissions. But in this case, we can create these in seperate files and reuse them multiple times for different resources.\n\nThe `onlyDeleteByOwner.js` file would like this:\n```js\nconst{ query } = require(\"faunadb\");\nconst{ Query, Lambda, Equals, Identity, Select, Get, Var } = query;\n\nmodule.exports = Query(\n\tLambda(\n\t\t\"ref\",\n\t\tEquals(Identity(), Select([\"data\", \"user\"], Get(Var(\"ref\"))))\n\t)\n);\n```\n\n### Uploading data\nTo upload data, you need a `fauna/data` directory containing a `.js` file for each of your data definition sets. These files describe the data and look like the following example.\n\nData is idempotent, meaning multiple calls of the `fauna-gql` command will not yield duplicates. Documents that already exist (determined by the specified `key`) will be updated. This is why you must define a unique index and also specify which field to use for uniqueness with the `key` property.\n\n```js\nmodule.exports = {\n  collection: \"Languages\",\n  index: \"languages_by_key\",\n  key: \"key\",\n  data: [\n    { key: \"en\", name: \"English\" },\n    { key: \"es\", name: \"Spanish\" },\n    { key: \"fr\", name: \"French\" },\n  ],\n};\n\n```\n\n### Typescript\n\nThis package supports type-checking and automatic compilation of typescript files. All you need to do is change the file extension to `.ts`.\n\nYou will also need to make sure you use the correct export syntax. Exports need to look like the following example to allow fauna-gql-upload to read it:\n\n```ts\nimport{ query } from \"faunadb\";\nconst{ Query, Lambda, Let, Identity, Select, Get, Var } = query;\n\n\nexport = {\n\tname: \"current_user\",\n\tbody:\n\tQuery(\n\t\tLambda([], Let({ userRef: Identity() }, Select([], Get(Var(\"userRef\")))))\n\t)\n}\n```\n\n#### Configuration file\n\nfauna-gql-upload looks for a `tsconfig.json` file in the following order:\n\n1. The file specified in `.fauna.json` under the `tsconfigPath` property.\n2. The closest `tsconfig.json` to the current resource, ie. if you have a `tsconfig.json` in your functions directory, we will use that for your functions but not for other resources.\n3. If the two previous checks returns empty, the default compiler options will be used.\n\n\n#### Incremental adoption\nIf you've already started a project using `.js` files, you can just add new files with the `.ts` extension and fauna-gql-upload will pick up both file extensions and treat then correctly.\n\n## Get in touch\nIf you want to get in touch with me, feel free to reach out to me one Twitter([@chj_web](https://twitter.com/chj_web)).\n","readmeFilename":"README.md","gitHead":"01d71092aca4f8a31ca35a609c1b4872ef144d31","_id":"fauna-gql-upload@1.9.0-preview","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ZKG/XC6CKWYpiXEIckYqm9TwDiY0Fu4DWw8HVzPCqDzM9woxtIcBj6hyaZ0dD2Z80E4bSqWTbisYe1EiDAurdg==","shasum":"c8d9001de8d1f06b6b57532ef8dc7fc19220d1d2","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.9.0-preview.tgz","fileCount":16,"unpackedSize":23184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoszMCRA9TVsSAnZWagAAHOEP/RpbZQ5Pdt5scoKpqSs+\nEB+hsn08SasPNlk+UJDXXeYrikeQu8YKG2eX6S4fLRCVvjJ9/de9JSPbtBa2\n4ymBHDxzVQu+YcL+GIRca+Yj2yirecGVnVVWBfjjRkxEpKNWXPgSVkFDgGbJ\nZ6OzHLDfBx8sn6jYOmt3ezJ3hm4FJVazjf/FkFNWB5PyvPHPvFur3HLDSb1L\nTB7cCFw4nCuyhQXGSt0DaUvzgOqfK72epHfYJ5dfrw4n4AXIs2xkgTve1XBk\n2Upd420slktk/OkayULhicekHqgT9O+S7mrk2ADhfF/WuIVfuIA4yXNr8379\nUwVCXhvlulCQSOHi6tIe47Rq/Xq39AwK3RU5f+6oWr4vtt1qD3/9JwGjlSln\nquEfWUT803v9lXc244wdmPSMz4bgevFwoiyZpmgiTATGFG58PYEcSfYgD4M3\n+JrnnxWnEaxysj2JcCEKjiCxAZ+Ayjc6FJGLHgXcE0a6s/2lVBFUZ7TVUrYk\nfUNET3fuWaehsJr+phkUOqVd0/H7KBhvH6KBeaSHzGTkN374gHj1JOGGL23s\np+vJDJqcJ33B0mTve9e6LGfgV9hzl9qJqKVPPySDs6JSPf84Ws7vIWs8vnzd\n0FLQvaxLk5VNDsY+EgLjC42qepJ1EPkYzq9mqFK8AErBoGj8xIIxKCMlv3AX\nZbQF\r\n=dkbA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFH+8xo17P0y32ZymMPyo2XtleyxHhkcaVt23uVcut3nAiBCgsHdrbkMSi+Ej0IYEIGKj1PPchP5pdJbLrwzg4Br9A=="}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.9.0-preview_1604504779908_0.6737274928519028"},"_hasShrinkwrap":false},"1.9.1-preview":{"name":"fauna-gql-upload","version":"1.9.1-preview","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.0","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","faunadb":"^3.0.1","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":"^3.0.0"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","readme":"# fauna-gql-upload\nfauna-gql-upload is a simple CLI to update your database's GraphQL schema, resolver functions, indexes, and database roles without going to the FaunaDB dashboard. It uses the `https://graphql.fauna.com/import` endpoint to update the schema from a file within your project, and the FQL driver for JavaScript to update/create functions, roles, and indexes.\n\n## Main features\n- 🗄️ Store all your User-defined functions, roles, indexes, and domain data within your project.\n- 📜 Update your schema and other resources without leaving your editor.\n- 🔃 Easily replicate FaunaDB resources across databases and accounts.\n- 📑 Include FaunaDB resources in version control and source code.\n- ✔️ Typescript support.\n\n> **NOTE:** If you want to use this package with typescript, you do not need to build the resources manually. As of version 1.9.0, type-checking and typescript compilation is handled automatically without extra configuration. Read more about [typescript support](#typescript).\n\n## Install\nYou could install locally within your project:\n```sh\nnpm install fauna-gql-upload\n```\n\nor, you could install it globally\n```sh\nnpm install fauna-gql-upload -g\n```\n\n### Local install\nWhen installing locally you have to run the command using a NPM script.\n\nPackage.json:\n```json\n{\n  \"name\": \"my-app\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"fauna\": \"fauna-gql\"\n  }\n}\n```\n\nRunning it:\n```sh\nnpm run fauna\n```\n\n### Global install\nWhen installing globally, all you have to do is run the command:\n```sh\nfauna-gql\n```\n\n## Configuration\nFor the command to work properly, you need to have certain information in your project.\n\n1. You need a `.env` file with a variable called `FAUNADB_SECRET`.\n2. You need a valid schema file to upload. This file should be located at `fauna/schema.gql` relative to the working directory where the command is executed.\n3. To upload functions, you need a directory called `fauna/functions`. Within this directory, you should have one `.js` file for each of you functions. See [Uploading Functions](#uploading-functions) for an example of such a file.\n4. To upload roles, you need a directory called `fauna/roles`. Within this directory, you should have one `.js` file for each of your roles. See [Uploading Roles](#uploading-roles) for an example of such a file.\n5. To upload indexes, you need a directory called `fauna/indexes`. Within this directory, you should have one `.js` file for each of your indexes. See [Uploading indexes](#uploading-indexes) for an example of such a file.\n6. To upload domain data, you need a directory called `fauna/data`. Within this directory, you should have one `.js` file for each of your data sets. See [Uploading data](#uploading-data) for an example of such a file.\n\n### Config file\n\nIf you need to customize paths or set a different environment variable name for your secret key, you can create a `.fauna.json` file.\n\nIt takes the following properties:\n\n|Property|Default|Description|\n|--------|-------|-------|\n|`schemaPath`|`models/schema.gql`|Path to your GraphQL schema.\n|`secretEnv`|`FAUNADB_SECRET`|The key used to access the your FaunaDB database.\n|`tsconfigPath`|`tsconfig.json`|Path to a `tsconfig.json` file.\n|`envPath`|`.env`|Path to the environment file that holds your `secretEnv`\n|`fnsDir`|`fauna/functions`|Path to directory that holds your FQL UDFs.\n|`rolesDir`|`fauna/roles`|Path to directory that holds your FaunaDB roles\n|`dataDir`|`fauna/data`|Path to directory that holds your domain data.\n\n*All properties are optional, you can omit `.fauna.json` completely if you are happy with the defaults.*\n\n## Usage\n\n### Uploading schema\nTo upload your schema, it has to be placed at `fauna/schema.gql` or the path specified in `.fauna.json`. It also needs to be valid (of course), otherwise you would get back an error. For more information on writing a GraphQL schema for FaunaDB, see the [official documentation](https://docs.fauna.com/fauna/current/api/graphql/).\n\n#### Overriding the schema\nIf you need to make schema changes that are not compatible with the previous versions of the schema, you might have to override it. This can be done by adding a `--override` flag when running the command.\n\nLike so:\n```sh\nfauna-gql --override\n```\n\nIf you are running the command locally with npm, you need to add the flag to the npm script.\n```json\n{\n  \"name\": \"my-app\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"fauna\": \"fauna-gql\",\n    \"fauna-override\": \"fauna-gql --override\",\n  }\n}\n```\n\nand then run:\n```sh\nnpm run fauna-override\n```\n\nSince overriding the schema removes all collections, functions, and indexes, you will be asked to confirm your intention. In certain situations though, you'd want to skip this confirmation, like in a CI/CD pipeline. Therefore, you can use the `-y` flag to override the prompt and go forward with the opration without questions.\n\nIt would look like this:\n```sh\nfauna-gql --override -y\n```\n\n### Uploading functions\nTo upload functions, you need a to have a `fauna/functions` directory containing `.js` files that describe your function's name, role, and body. As mentioned earlier, it is possible to customize the functions path by adding a `fnsDir` property to the `.fauna.json` file.\n\nFor your functions to work, you need to `require(\"faunadb\")` inside each of the function files, and use the functions inside `fauna.query` to build your function. Take a look at the following example:\n```js\nconst{ query } = require(\"faunadb\");\nconst{ Query, Lambda, Let, Identity, Select, Get, Var } = query;\n\nmodule.exports = {\n\tname: \"current_user\",\n\tbody:\n\tQuery(\n\t\tLambda([], Let({ userRef: Identity() }, Select([], Get(Var(\"userRef\")))))\n\t)\n};\n\n```\nThis function would return the currently authenticated user. \n\nAs you can see, you need to export an object containing the name of the function, as well as the body of the function. See the [Fauna documentation](https://docs.fauna.com/fauna/current/api/fql/functions/createfunction) for a full reference on the accepted properties.\n\n### Uploading roles\nTo upload roles, you need a `fauna/roles` directory containing a `.js` file for each of your roles. These files describe the role and look like the following example.\n\n```js\nconst{ query } = require(\"faunadb\");\nconst { Collection } = query;\nconst onlyDeleteByOwner = require(\"../predicates/onlyDeleteByOwner\");\n\nmodule.exports = {\n\tname: \"user\",\n\tprivileges: [\n\t\t{\n\t\t\tresource: Collection(\"Comment\"),\n\t\t\tactions: {\n\t\t\t\tread: true,\n\t\t\t\tcreate: true,\n\t\t\t\tdelete: onlyDeleteByOwner\n\t\t\t}\n\t\t}\n\t]\n}\n```\nAs with the functions, you need to include certain functions from the `faunadb` driver. \n\n### Uploading indexes\nTo upload indexes, you need a `fauna/indexes` directory containing a `.js` file for each of your indexes. These files describe the index and look like the following example.\n\n```js\nconst { query } = require(\"faunadb\");\nconst { Collection } = query;\n\nmodule.exports = {\n\tname: \"people_sort_by_age_asc\",\n\tsource: Collection(\"People\"),\n\tvalues: [\n\t\t{ field: [\"data\", \"age\"] },\n\t\t{ field: [\"ref\"] }\n\t]\n}\n```\n\nFauna does actually create indexes based on your schema. But in certain situations it might be necessary to create custom indexes. The index above sorts people in ascending order by their age.\n\n#### Predicate functions\nAnother detail that you've probably noticed is the `onlyDeleteByOwner` function. This is a [predicate function](https://docs.fauna.com/fauna/current/security/roles#mco). It lets you define your own permissions based on the user making the request and the document's fields. You would normally have to write these inline with the permissions. But in this case, we can create these in seperate files and reuse them multiple times for different resources.\n\nThe `onlyDeleteByOwner.js` file would like this:\n```js\nconst{ query } = require(\"faunadb\");\nconst{ Query, Lambda, Equals, Identity, Select, Get, Var } = query;\n\nmodule.exports = Query(\n\tLambda(\n\t\t\"ref\",\n\t\tEquals(Identity(), Select([\"data\", \"user\"], Get(Var(\"ref\"))))\n\t)\n);\n```\n\n### Uploading data\nTo upload data, you need a `fauna/data` directory containing a `.js` file for each of your data definition sets. These files describe the data and look like the following example.\n\nData is idempotent, meaning multiple calls of the `fauna-gql` command will not yield duplicates. Documents that already exist (determined by the specified `key`) will be updated. This is why you must define a unique index and also specify which field to use for uniqueness with the `key` property.\n\n```js\nmodule.exports = {\n  collection: \"Languages\",\n  index: \"languages_by_key\",\n  key: \"key\",\n  data: [\n    { key: \"en\", name: \"English\" },\n    { key: \"es\", name: \"Spanish\" },\n    { key: \"fr\", name: \"French\" },\n  ],\n};\n\n```\n\n### Typescript\n\nThis package supports type-checking and automatic compilation of typescript files. All you need to do is change the file extension to `.ts`.\n\nYou will also need to make sure you use the correct export syntax. Exports need to look like the following example to allow fauna-gql-upload to read it:\n\n```ts\nimport{ query } from \"faunadb\";\nconst{ Query, Lambda, Let, Identity, Select, Get, Var } = query;\n\n\nexport = {\n\tname: \"current_user\",\n\tbody:\n\tQuery(\n\t\tLambda([], Let({ userRef: Identity() }, Select([], Get(Var(\"userRef\")))))\n\t)\n}\n```\n\n#### Configuration file\n\nfauna-gql-upload looks for a `tsconfig.json` file in the following order:\n\n1. The file specified in `.fauna.json` under the `tsconfigPath` property.\n2. The closest `tsconfig.json` to the current resource, ie. if you have a `tsconfig.json` in your functions directory, we will use that for your functions but not for other resources.\n3. If the two previous checks returns empty, the default compiler options will be used.\n\n\n#### Incremental adoption\nIf you've already started a project using `.js` files, you can just add new files with the `.ts` extension and fauna-gql-upload will pick up both file extensions and treat then correctly.\n\n## Get in touch\nIf you want to get in touch with me, feel free to reach out to me one Twitter([@chj_web](https://twitter.com/chj_web)).\n","readmeFilename":"README.md","gitHead":"29dceef15aa30c001c1f30d6099d132720ec0587","_id":"fauna-gql-upload@1.9.1-preview","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-9lISxpRlLIeO6ZRzlOzXPgfeOg6MXwcUonboL9MxrgSsXUMoPota2IHADPpSzNRHTlrMpA5wem/GQZF7JeH6oA==","shasum":"73122bbe11957806d2e8e1bdf297665d00533113","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.9.1-preview.tgz","fileCount":16,"unpackedSize":23198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpmWrCRA9TVsSAnZWagAAVG8P/34lzDtMrmuJHza27CQ7\nJTv9Qldsu18ij3aS1AtnrnLEu+ferNoZKe985zolGRI0d2GzxRqteNnoDxaM\nUiuSeMWmcEP/Bo4iYM/8vxvoXP+XYtP2cPhZlSlILu1AtlOcDE6M8Lzs12X1\nhk00+Yi0ESgzGaW+9uxawXP0CEDDW3E/0cGT1U1cdHvlZ6ic18wcR644lYeQ\nAIlTqbUPh95+dC+EA1cEkRaF1S5pjvEGTi4KmrU/5qAN7BI8mNW8Qc65oSqO\nZF5UluaLrpdksp7IXhY6Jwymh4xgdLumMkn7GlXdhx8ZwkTdMzabfx7lrDp6\nqMcTI+zAedarFv6fVJ8ydBVruHWsP3C30dB6SnjSw9XIspPSJYb9FDQ6Ysu+\ncFMxpgQosfjXA9oBMtMHI6wABkUAEltwULINOxSgX8MVsOS5vE00gferYjCS\ngLYbH/BDG94nD2k+snrlNGXEimkShSaYZ4zPeLdYk+fhkPNEYZFAuOyTjb+/\n4pol17ikl3YmyuVxHn5lWo3fSun2NLu8z7ZTu6MiR8nXTJHdLi8KOJk+5lfa\nFa7IRx5BumZo6QGctrYXUooU+eWoxQ9QDQhpohPDVyef1MrwybOZqebyzv0u\nC4W9nkxAchqj0ZZApYQmwQTSqHDFWVshWTJYOXhYx6KSYs9x5clvtDj0w4JJ\n/29R\r\n=B7N0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJI3w4R1B7t9JaLWHR/2EKjzU531kayb4dfFGaYZ37/wIgO5pBfrv9is+WXfSYP8e6qsBW2I7rNnwV5m+dVGGfhb4="}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.9.1-preview_1604740522745_0.05855507475819888"},"_hasShrinkwrap":false},"1.9.0":{"name":"fauna-gql-upload","version":"1.9.0","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js","fgu":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","faunadb":"^3.0.1","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":"^3.0.0"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"cec6ca28f5dd6292b01eea8a8f141d736ba973b9","_id":"fauna-gql-upload@1.9.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-dvDWZVD4JGaTxEVLXZyndbkA1xPv1WEgiYgJCMmO/IZD67P9pplvCWwR62IYY2YEzRBRS4JK6Hb6HAniBksjww==","shasum":"ac503d5969d450341087c1f21051498ed3ee0b90","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.9.0.tgz","fileCount":18,"unpackedSize":26740,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfu5iTCRA9TVsSAnZWagAA5TsQAJqouLXtLj1YmToLawkq\nKpD44vdZyyIjYc5nU3Z9MA2tMmt1Cw3aClJNzeqzCutgQY3DIcsiTn/j2VvB\nQQbKzC6wjep8+dBCTmrr9GSOaJSejqN2//FL1aePpA7PCR2QxUvxrPRuo5l9\nerfv4sz0i+3NsxXSaucHZL4zVca/pzE4xnTQqlFfZg0GS8JoSPt1Z9A9Yvjk\nAKgTsx/0818GZSn9BX/cKAlQZhqK6V5FUEdIMPtkq8yaidf0leMQLEnvtCP5\nj07RxzKKLUC1Ja4jJUHsFQcbClUt7Y9eP95cLYjOORJH/X1zA5cvwAJ7mYBl\nJ9VYa62hkteCShdVE26jqSVdVjh5yNAyf5PUc0pKMEVvfCANjCZg6bBh/Bl9\nO0iyyRzRjI3GivlGspTm8/+pgnYCJaiMXqto9JbHy9JUtMiB+CNIs1BnWGRB\n5x+aZwaAw4vfqkmUgz+kHf0geldw9VXg3m5aRKahbaxPQbZjItn//VHxw51W\nHiDBanjMhkerNADDEvHYmgukFWeym6BaHyDr1xhPARvrfRjgIGQ8wD7mI4Yu\notHKGh34Sff46EAr3ccHSinpgA21T4CeSyFWcvAXT3C6ce0OcNJ8uxL+Js2N\nrWUMu2q6X1N68VCSVQOkHz822fbC30V79bwJ0yTAFwRIKNk5xag0g43hG9/M\nygXr\r\n=oy4Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBoV8Z8fWj61CMB21LrNkVXtjmUmOh+ptp9Kl6EVpwNKAiAEMVJh2vcyriafTKhsiCEiUiM3643Y1de7gizpIAFN1w=="}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.9.0_1606129810626_0.5819994146003478"},"_hasShrinkwrap":false},"1.9.1":{"name":"fauna-gql-upload","version":"1.9.1","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js","fgu":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","faunadb":"^3.0.1","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":"^3.0.0"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"223bf18d337383f5071e8cb3864cba02ef784203","_id":"fauna-gql-upload@1.9.1","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-XjyalEnlNbjHGyJBkPzPDB14aPUHEC0oqtKi2YbxcCahJp7NFmntxi9alq4XgSWF/hlBi65RzR1DQJZspwSqGg==","shasum":"812b3b77840e1fc70ddb36dcaf352fb649f7f366","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.9.1.tgz","fileCount":18,"unpackedSize":27742,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvNDLCRA9TVsSAnZWagAAEsgP/1LyxEU90o7bshXwlM6Y\nE9bniY9mYVIrxCQD7ENbT1uU/l3KlvN6A7neOD5nc/9H5N2GEV4IghZ6reqm\nSFnHJTm5ZjL26nTPOvVNLLt1gdw+Hg2Mn6Yu/9vyedN9z2EzVYbpxJw4HEEB\n/RAKwcJEr6+xjV9BILIfAhfOej3krAdAV+iUpNW//97HcPZt4xX1atXEFTmy\nA3BOOAuJZZBXMkyWfaSYilM3f51kZTvu8pY9NS0JBFi6O9DJ6kXsE+5FWXHv\ngVq/F8wdhSvURHSabEtwL0d64lbEnBUdQ13iSeJaDJ7u27/+2B9x4iJQC+wb\nC30rFToHZ8T67PLw/yR0jOj+dzX2S/hF2Z2RZF3GOy7LgL4/9oOO0sJjdefG\n2DAhv4uumfXij8TvIcLQrkcHQT+i8qTKOmJMLYY8QFNwo3O13z1mh7VNdKHr\nhRVdAKtshL0Mg9eravdBrNPDW3ejf/tLm2WkDgy8+ppTStjc/Iuqfk+1r5RA\nVlLEktCsv8klm6aRSlG77Cj4ieAFylqIbm1RcDkQPhOlHMazMZhyCR4L5Joq\nhtApWvPRRMu6crjh89IcQ+nJ4guKv6RpesfJsg81LCqVdNV7Q58I9OF/lsOd\nzfADH4AP+dXzyCrK+JSEdi5UrdTvCIhtNBM7kqDS+JW1qmacO8yAMHEwYXvP\nqxID\r\n=U+Wv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCW01PcgWgYn3Ug92/g0S7YS5sBA1Bg7qvLeqlYLWWcTQIhAPA8vsDzPcgXefFhXpzIK3BMSvQ1lFMFYdSPK32ysLE7"}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.9.1_1606209738834_0.6299005130155222"},"_hasShrinkwrap":false},"1.9.2":{"name":"fauna-gql-upload","version":"1.9.2","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js","fgu":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","faunadb":"^3.0.1","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":"^3.0.0"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"73c84a13e15861c58b52ccd494cd62f3d649f118","_id":"fauna-gql-upload@1.9.2","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-xPdns90zKfCaW44JS+AIxkp8pL0W3dAzCbWIyv2i4F/YSc+zQBhMIhwOMAE+uCsoeCRguUMmzkkxM9iJRa54EA==","shasum":"444b7832116e024b13bfc91f4a36cf1ecb509e24","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.9.2.tgz","fileCount":18,"unpackedSize":28079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzL/uCRA9TVsSAnZWagAAqH4P/340uJwL9EaI3cS2BSQY\nJctfJt8zxvB92/3eT4hLX5VE+lzZJ8XFtu3QN7XydHIhRH23sy5USqkJO03I\nCHJHyA2rVVhJdGcm3IO37+4ckcxTF0wSfhZhkImHhTY67T/4Xh1OWIOv2pRi\ne0U0j+v9qeDFStU4ZU0qpgzi3Wm+ttimCoLgs+CBSZN2rt+1rV0fkGGp6HhY\nczkYgt2s1o7iay9rhm6bh+H353MOKs/1bPN8rTd7YROiGWw7EoqR7VpPXOfl\nQcBVADLmxAkha90Xz/8r09x9nTyzXxzfBri3sJEr2oeZYHKkF52MaQR7R0d4\ng/9/lxvwSem1ozq/OqK5RhCjQVyAc1C3FQj9mDvLSqWKjhbibGnt3iE76cvC\nbNwzy9I+T0isCa5N4qTkQSLUGb1FuBMD1x8JPS/qjze8WGJmJJrR0+0nHkjv\nccwYmF2FX72Pc5BotytduLbiSKrxzKlM67jIoQy349d2RSmCbK0R04vbFTnN\njkogiSZSTQ/uRW8Aa0Hg3q3dmxFmTNF9M0KmXEo5DpRfEkxfe9+wChpvb/mj\nrKoXpIcmbv6g0ZvZVHTzujYWgCDUCViXie/ndl7lQ/FQPReKlz3QNXPWYhsq\nrrl1pbuVxtNBC6bT1XnTk5Kagm+OJ6c0RZD2OoezIl5sEAeg6DncJhSNd9kY\n3D6k\r\n=Izho\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQRyDl18rgwrxJO3ihFMCFzpMr+JMRyvXE6qsorlT/1wIgO53z9sTpkmW/5RVFfNsgqFayIX05aAL1yhrWi7ZO7vk="}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.9.2_1607253997840_0.5858318660368074"},"_hasShrinkwrap":false},"1.9.3":{"name":"fauna-gql-upload","version":"1.9.3","description":"Upload a GraphQL schema to FaunaDB using the command line.","main":"index.js","bin":{"fauna-gql":"index.js","fgu":"index.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","yargs":"^15.3.1"},"devDependencies":{"babel-jest":"^26.0.1","eslint":"^6.8.0","eslint-config-plazide":"^0.1.6","faunadb":"^3.0.1","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":"^3.0.0"},"directories":{"lib":"lib"},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"1fb4400ea9ea5ac2c0f5c7156cc9e0b896653f70","_id":"fauna-gql-upload@1.9.3","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Fpt1Vyy7R7hQukLuhOyHsLDYMlHIfCb6j6lvy26QYxRM4Mbiw4lM0VEtOBzeJ6DLXFUQ/0Pk1eyffLMv/ED/bw==","shasum":"aa3ba8bccfbd7440fe7021ca77a1e4c380e35301","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-1.9.3.tgz","fileCount":18,"unpackedSize":28289,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4cKICRA9TVsSAnZWagAAHl0QAKDp2uSLw8zvGwHJ511x\nCAcAHh9P0ZZT1yUW+Hm+MvJc8nTdshxafuOFIeWplGf6kU+XxpuuZk5OmORf\n0vWoLe+7VlgDJXOPknOz4UbtMB89J5FlppytfMjLyK3YuvmsrNJbP6lgtBsl\nfkJKxL9kn9I7PCbtnEElurtWDQ1pmRdzhkm3O10uLGwfU8IqSbDjCwvUMyOJ\nt4ZGAvyPQKiFnT+IWPaSOIqpda3Nl/P9GepjgZu6F6ulA8VlUu89SDPwM+h4\nUtzzRPNXDLGDlCQo615RWSJuinqWb2XE54emYNvB6Y7x/4MKbiUT4rId/bJu\nCXD9zw9kQTBCnaqQLs4ovv+VvoziAoehJlAAJAG6hGnuS/uyntPqCdjzGKPJ\nwNMsavKB41auFldEHE425uYaxiOsdj8oRn0AzutSyWgkwnp/oGpOpHbTOAOA\nDJyB1L8dh15c47oCmp8v7ZDz1s23WEDXVu0zyOncrkhw338DLYJjKg2WbfOu\nBiXYUk3sP63gWMSQE6vPoD6wY7vfIw9dwrolcScoqMta/v8d/NS4btrE+1x/\nEvYD3kFuAXUERMsgwYZgMOzWD04IdOmbcaY3s9XoRPm0q2+unKV73xw0K9cG\nmx53pUniUuUftI6bDh++whSB/DkAo72lILWfLw4cXDrPIvHT/6I1Zs/qkaf0\nMZbR\r\n=0T/8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXgeZrwUcqN7s8dzAh/0F9gAAlklsBhMlpw5GGNimxkwIhAMVME0Pa3NDntxfx2i3cvr7pYPGmwS2+vtMAu5AY1Wox"}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_1.9.3_1608630919495_0.2328205991742167"},"_hasShrinkwrap":false},"2.0.0":{"name":"fauna-gql-upload","version":"2.0.0","description":"Manage your FaunaDB resources in within your project and upload them using a single command","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=12.10.0"},"bin":{"fauna-gql":"dist/cli.js","fgu":"dist/cli.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"@graphql-codegen/core":"^1.17.8","@graphql-codegen/typescript":"^1.17.11","@graphql-codegen/typescript-operations":"^1.17.10","@graphql-tools/code-file-loader":"^6.2.6","@graphql-tools/graphql-file-loader":"^6.2.6","@graphql-tools/load":"^6.2.5","@graphql-tools/url-loader":"^6.4.0","cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","typescript":"^4.0.5","yargs":"^15.3.1"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/cli-spinner":"^0.2.0","@types/jest":"^26.0.20","@types/node":"^14.14.20","@types/node-fetch":"^2.5.8","@types/prompts":"^2.0.9","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","babel-jest":"^26.6.3","eslint":"^6.8.0","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":">=4.0.0","graphql":"^15.4.0"},"optionalDependencies":{"typescript":"^4.0.5"},"scripts":{"test":"jest","build":"tsc","watch":"tsc --watch","prepublish":"yarn test && yarn build"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"360012d1a38715322377d227f52bd189dfd672cf","_id":"fauna-gql-upload@2.0.0","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-87Rmr+C89jsv9OOUyx7dHFZVdyofMvznrXs3LSzmJnKD7SQM5Cdu2liGL4nyjLxgihJ/Fd1fDvW7B/t9f388xg==","shasum":"2227678b50c1cfd88a8486db5b09458b0b02d8ef","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-2.0.0.tgz","fileCount":65,"unpackedSize":147685,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgT2f6CRA9TVsSAnZWagAAL+gP/j3cTTU7yuMjv5z4izKx\n3Y5kG4SYzIoUrn7QxlYjpD1b1JdQrqYBuft8Nux0NeF1X9nqgBbVCtT5qzdL\nP6vxnZDwocjT2TY5tXD93M6lvZsdsN/X8J7DjqZt6G3ZxxxdrtOTXV8WwG9f\nbP2THlQsMpe4VBYj/UO4KagqtDOYb9+2WdVszvf//iSbIX05yEMKxXvv2obj\ngLsHs88K36Q1EsKFQJ6mL9cmvbcX2wM83fME8A68I3SwneSSBbc2kq5jo5S0\n0/z5Qhm0rB60dHt9gXcgjTmEl3FxcHMA4uUiflvx1U9QElQg9ZFbB/Qp/gqQ\nLY7Eyc5pv7zUwVoBxRNsXcueprUWJi9XlmLsZrGNRc0vlvWzxGdDfs6CN5t0\nIrRtrSY2AH4Xlsa09/Wr4HZGrAAnKZw8zVnI6946wabbOacTrfolUS88iN5W\nC2OiAUT9vMhjKxBlA7y7IPzCbp+cSBk8y+u6K3mc2VSlcBltro0R+CRlVqbS\nOwm6cw3sLBSUprY7o5irP6nbOV2W9TYK6H+0fy2fTKyjcNQZM8MqX3NpUXM3\nO5KEMi/iShNhBCEdo3SeO/pn0G1ponZyMeV2rGbT8mrEJS1cCg6sCR86UtI5\n1Mcw/UB3SIsmDPf/fryPgykQdA3j8qJsLv81nAK80sGsHPOGbPi8i4femNTR\ned6D\r\n=MMxN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFa1tdGrAR+V1bHZxci60Ht7CTNt7jf7yE2Ki6pG7eFtAiEA3i/0zRtrJ7eQ+Kwa8+qaoy3Nz6aDCji0xrw94r3lhe4="}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_2.0.0_1615816698225_0.4246864920360405"},"_hasShrinkwrap":false},"2.0.1":{"name":"fauna-gql-upload","version":"2.0.1","description":"Manage your FaunaDB resources in within your project and upload them using a single command","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=12.10.0"},"bin":{"fauna-gql":"dist/cli.js","fgu":"dist/cli.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"@graphql-codegen/core":"^1.17.8","@graphql-codegen/typescript":"^1.17.11","@graphql-codegen/typescript-operations":"^1.17.10","@graphql-tools/code-file-loader":"^6.2.6","@graphql-tools/graphql-file-loader":"^6.2.6","@graphql-tools/load":"^6.2.5","@graphql-tools/url-loader":"^6.4.0","cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","typescript":"^4.0.5","yargs":"^15.3.1"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/cli-spinner":"^0.2.0","@types/jest":"^26.0.20","@types/node":"^14.14.20","@types/node-fetch":"^2.5.8","@types/prompts":"^2.0.9","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","babel-jest":"^26.6.3","eslint":"^6.8.0","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":">=4.0.0","graphql":"^15.4.0"},"optionalDependencies":{"typescript":"^4.0.5"},"scripts":{"test":"jest","build":"tsc","watch":"tsc --watch","prepublish":"yarn test && yarn build"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"8345660cefcc49cc80fd9f0358c3e16d31617b33","_id":"fauna-gql-upload@2.0.1","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-M1GR8a00Lx5fDYQHbdrUtlcL4DjjoPOXA6T/Jys8ZQ+ztX/9UMJYeJoDbM0U0+3QIzC1MdpmD36t/sagCC44gg==","shasum":"3eb9d04d1649c4239923ef3d0a37c44c89721773","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-2.0.1.tgz","fileCount":65,"unpackedSize":147718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgT9FbCRA9TVsSAnZWagAAg5YP/1ikmTiLuLqkveKUPumQ\nNq/IKN6YRSSV6zd1R/EEzQRbtK7/08MF9RvzzsrwLOSGKImbSEzRWnOaIJit\ndG2Fgcyx8XbGENOz5yuYVBY3TXPTW5bPqQli9/C9FxnpcXcGiYXFl9TleFhU\nivo3OIeLKlxsl50m0PVKWGo6SjnwOfQQtOCXsTtCPoyc9JAL0iEO8zgVrAKb\nQEJ71egTS4V7RABX+7wwNf7oCnyDwdJPrl1EPmUt/18DPYOyyzYhamiK6fcF\na/E+YGrpA6tMpzd8SRHs3NGBqx16X9u9egkozhNv1DqlInKCDP0Czfcszd/G\nzGPoo6KrjR3QmP5gQmjX5qWMpe44ujLoiftjdCnJKRQlXizCuhiWea356Cio\nFZ3Dx0HDVa6GTA18qnAgKaaLbi54cFHLM7wwqz2dvMMO5mlWWLwnDAbCBctI\nSm0QcAYCvw5m4XGITwPv3mifbhtThB/fC7sHt2535AI5T8fC7w+5y64Qc1MD\npnJq4i7JDOiTrzwwPY/Zuw6hGJoGr61e0IpFCpjMXPpxmnx2IQPypWjR/B/n\nr7os65NxQ8R0v3jwbdUu0d/IWdB5BcjolUxgGTf+KsMm9tOYlpR3xZ6MPJY0\nHv99mGhMMaP+6FocOESd85JPcqy4xHMoOC6A9q2ZO6d0hFj8I+2lDrAaH95F\n3VDM\r\n=TybR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBPJ6s64k2njQ7OPUgFhgUCLUepeeIzh4Dudp5ZvH7VaAiEA1XxjG7+EtVM0kOqc0avhG32e+ar/nFRag6i7ZuR/wME="}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_2.0.1_1615843674831_0.7483818617146862"},"_hasShrinkwrap":false},"2.0.2":{"name":"fauna-gql-upload","version":"2.0.2","description":"Manage your FaunaDB resources in within your project and upload them using a single command","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=12.10.0"},"bin":{"fauna-gql":"dist/cli.js","fgu":"dist/cli.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"@graphql-codegen/core":"^1.17.8","@graphql-codegen/typescript":"^1.17.11","@graphql-codegen/typescript-operations":"^1.17.10","@graphql-tools/code-file-loader":"^6.2.6","@graphql-tools/graphql-file-loader":"^6.2.6","@graphql-tools/load":"^6.2.5","@graphql-tools/url-loader":"^6.4.0","cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","typescript":"^4.0.5","yargs":"^15.3.1"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/cli-spinner":"^0.2.0","@types/jest":"^26.0.20","@types/node":"^14.14.20","@types/node-fetch":"^2.5.8","@types/prompts":"^2.0.9","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","babel-jest":"^26.6.3","eslint":"^6.8.0","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":">=4.0.0","graphql":"^15.4.0"},"optionalDependencies":{"typescript":"^4.0.5"},"scripts":{"test":"jest","build":"tsc","watch":"tsc --watch","prepublish":"yarn test && yarn build"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"7861565d53ca8f5c841ab138843bde4c8c7a4478","_id":"fauna-gql-upload@2.0.2","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Tw/C0jSLu2XEu0MXk9OTeMQCu7F6Y0zBRq6Ddj9uO9M8UMCycc0dtkzExGtwZc3Abt3Oqw7j7A02oUG4BQ+YeA==","shasum":"bfde57514698da1385e0e549703bf3db0d7a4e5d","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-2.0.2.tgz","fileCount":65,"unpackedSize":147717,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVOAFCRA9TVsSAnZWagAAYfsQAIwgDYnO0V9TdmMuJQd/\nN5OpCnXD4onhkyRHHxrs3mKE0NrB/mB5xdabi3nIq+Z9w0rASiE4kS6gqEiI\nUC3UGGrSVMYmv3ukf8uuBhIkgn85w5C6b3lvBGqGrZ1KKKkhgKEQB5TPBgf+\n9OgyND/hN9kWxrjPLK8b7rHovlUd8ddz15XTm/dxmL8iCOJhg6uKzqHxjEF/\nwYnh4mPnl7JYd3+VotShzDkrKJb9/tesb/7xrhEn7QP/rlZkK9IEyJ52FCPi\nyZTUcNAPpaF53/7Vcrmdy2n1iq4ylY/fnwOAJIYn7Ybqv2+UuzV5OMFpbVPI\ngsWbo7RcoOJkN39S2/S6/a/FRC4X+vD6VGIJKvz0xVZa5qbxfudusTmkYepS\n8dcpUGr2pr0349VNcOPm541f41h8x+GU3sExj5Qs5yko7AnLfqFmYVn/KYPq\nRV+MpqYMyYu26ZKF8447dY3lBBYeJNvox1wcEEFyWOJxz5tvDBRhqFFhPc4u\nRube+5n2AAud+iPT+5ko2b6+/2xayO01q1r7DO838W5DD3tLp2VYgaRZ92+N\niE/mgJp/pkSxk9NByIiLs77QC3RcXyl2CtEu5JDPkbbCb77WkT0cOk2SLLZm\nQcGdcI3W/vQcIU2lBUPIkdjC/rG9vwMqGX9Nutp5/umszNuvCU9wqCkX/NoR\nvVOz\r\n=nrsy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCClNjjv3U/k1ejb0xkW/jnphHIcPSNREpi01r8bBLVwAIgH7zMFnkIMdmGP8fySCcnLsiRIqBq9n/K6PA9+RtoVUY="}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_2.0.2_1616175108667_0.4250189888978293"},"_hasShrinkwrap":false},"2.1.0":{"name":"fauna-gql-upload","version":"2.1.0","description":"Manage your FaunaDB resources in within your project and upload them using a single command","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=12.10.0"},"bin":{"fauna-gql":"dist/cli.js","fgu":"dist/cli.js"},"keywords":["faunadb","graphql","cli"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"@graphql-codegen/core":"^1.17.8","@graphql-codegen/typescript":"^1.17.11","@graphql-codegen/typescript-operations":"^1.17.10","@graphql-tools/code-file-loader":"^6.2.6","@graphql-tools/graphql-file-loader":"^6.2.6","@graphql-tools/load":"^6.2.5","@graphql-tools/url-loader":"^6.4.0","cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","typescript":"^4.0.5","yargs":"^15.3.1"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/cli-spinner":"^0.2.0","@types/jest":"^26.0.20","@types/node":"^14.14.20","@types/node-fetch":"^2.5.8","@types/prompts":"^2.0.9","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","babel-jest":"^26.6.3","eslint":"^6.8.0","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":">=4.0.0","graphql":"^15.4.0"},"optionalDependencies":{"typescript":"^4.0.5"},"scripts":{"test":"jest","build":"tsc","watch":"tsc --watch","prepublish":"yarn test && yarn build"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"72c19c8ac03b8d97a7b627eba33a056281a2e7ca","_id":"fauna-gql-upload@2.1.0","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8L/76cXv5EjTeqIgTkcGs0l6g3dONCl9xjIS3E3bhyNyuOWmznP8D2IVufskiLArvlMaxHBBidyvhiFu9XjkcA==","shasum":"8c095bab34f835f185077998beefaeffc98f1a26","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-2.1.0.tgz","fileCount":65,"unpackedSize":159630,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgaubFCRA9TVsSAnZWagAAWBUP/2IeFDu4zlb5RQovuNZZ\neuszlSr0m8TRY0iz+UdnyBCQ+byRDIkVeFtzCbYAdhdkVDbYCKh4AYwbgRtm\ncTstzMve/Xu5WXucOXO08qvG8TJyMWUlhFXVi+1Pse7XKQOYx4dF3iLjCg/u\nRY7NsCwB0klG3gH2vATmrpfjH68x/qUFLOt4kNWqNpfeIjvoYW53Qaanl+G6\nf7XxpWgUYopv0p+nRVgXSbkTDNE8bWyna3pCtYE8SROOZCX5sj8VGZqEEHjO\nZtkrXTwBJb5chHVUHGCwdl6yorzWH8PC8YUY5ShGO5mzGEV3I9xG8805IUiF\nZO/SKkJwJ4dVwzn9GotmQb5BdIu9DXBMNvyWmsCCkX1KU9Fk7NGSuZAbV8TU\nosrqa/7c1lSnpCfNEgP2dI2kzFiwDQ91xcevUPwD+9WlspbO2MnXB3LmVEm/\nqqHi2Ov1xwKwFy4JsrYjXDK9zNIXtobPQjyrWYhYnYq6FBaBf+edsSQE2ssN\n2Q+/VbOXf88e8VUPwbxOeL0jxxD/3Bw5tv3avwPDwLIBfjJKqsIv+xwffRKH\nJ0TvRP8GA5rq0Ql3xqygEbLKzhe/bT+E8Iyxa/PM4nxcSk+DuNWbDpBv0rM8\nilSPHpQTJnl/6VBLbUOUxenh0gKt3Gl0lHwjtbUdHJBn1aDiCy+QsRvLyEnl\nWWJF\r\n=uXom\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD11XIN8EIaN7cNpf3rMJ2kitM1qoixK4HFj82jAz6F4QIhAMJHpL42ZI0Fqm1gqaRprFQlNIt/vFzoNOnMCRhUb0oF"}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_2.1.0_1617618628501_0.34204276724664595"},"_hasShrinkwrap":false},"2.2.0":{"name":"fauna-gql-upload","version":"2.2.0","description":"Manage your FaunaDB resources in within your project and upload them using a single command","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=12.10.0"},"bin":{"fauna-gql":"dist/cli.js","fgu":"dist/cli.js"},"keywords":["faunadb","graphql","cli","IaC","database"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"@graphql-codegen/core":"^1.17.8","@graphql-codegen/typescript":"^1.17.11","@graphql-codegen/typescript-operations":"^1.17.10","@graphql-tools/code-file-loader":"^6.2.6","@graphql-tools/graphql-file-loader":"^6.2.6","@graphql-tools/load":"^6.2.5","@graphql-tools/url-loader":"^6.4.0","cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","typescript":"^4.0.5","yargs":"^15.3.1"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/cli-spinner":"^0.2.0","@types/jest":"^26.0.20","@types/node":"^14.14.20","@types/node-fetch":"^2.5.8","@types/prompts":"^2.0.9","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","babel-jest":"^26.6.3","eslint":"^6.8.0","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":">=4.0.0","graphql":"^15.4.0"},"optionalDependencies":{"typescript":"^4.0.5"},"scripts":{"test":"jest","build":"tsc","watch":"tsc --watch","prepublish":"yarn test && yarn build"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"19a5a6ed457ff5f39f207abd923d4c2d14b886eb","_id":"fauna-gql-upload@2.2.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-96IJyDyjGA0n02zIxDhnzDqohPE14W3CsfXE9VrF8JD1176XmVmU8SmyzC4Bc9cOlu+sNvXToPlHqeHCDmVzjg==","shasum":"9e74dbb56eb2054ea7608e19c259de1c71f1f86d","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-2.2.0.tgz","fileCount":68,"unpackedSize":173469,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguNMxCRA9TVsSAnZWagAANdUP/1OtOtuyhe4+oiLYr1FW\n7bqA50ACOxrI3ejnecu3CMTiLJm0EEIlF5MFuAcmUulhC9p0xLDxFrlaWYkL\nUKHBbX96d+iEWHoB2bR5wPuuse6PEPzOUmC6g98ymxnzX9p6KikVRgqsHJhX\navXyTkJccA/j34dDrk5Bfnm4+f36B8nw1I+leRMobWIqous9RRECj4YYYrg8\nTtl2GYiDzYhQHtf5csnDR/Hl5A4XV368lAtP4tx/of925oaRdKNwbDsu2Ahn\n/kbWMkp7/cG/MsJyDsJqgV8xz6BIcS81avoBzNFLYO9JLGsyjYc7FP/egMFs\n94zW6K4ORbqcm2wfLRlKFSfjnVYkUXdiPsetggVUjUuvQCrZYBKAYquNTffB\n3dsFHklcYs2SnXzHLhdiBjdw+ELtTgoy9a+PcFHE+IrGkUKI0rG1eE6v8D5x\noqu8BmzOXALX1X9sO5eXACr3L1QgeOUA0VXXf5Z626NVDWib4Cv+wJGuOQRB\n3JSLQBVoFL5VlvnFq5J3MqkO4w303pJMYdpSdxXRfXNloyLGHnEH7JL+ktLq\nTpf3tqY0M0opGaG6q9ZtfFq7VlbixuX/2HwLA/aI2TI2tmGuYtE1EgPtBDKR\n3BNBGC8jFQE1+42TWtA8iWS/rwwb/iq8pVrwj5vFIBDFpZsymnvfek3zFnJg\nBHwW\r\n=xks1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5fatZvCtrqC4i0Cg4rQM7ZbZDRXn48PT+clncP690BgIhAIqCLDN3HXOlMwyeeiHHncN+0sj7zRNkfFhxvv/ssrL6"}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_2.2.0_1622725424807_0.07114258785215055"},"_hasShrinkwrap":false},"2.3.0":{"name":"fauna-gql-upload","version":"2.3.0","description":"Manage your FaunaDB resources in within your project and upload them using a single command","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=12.10.0"},"bin":{"fauna-gql":"dist/cli.js","fgu":"dist/cli.js"},"keywords":["faunadb","graphql","cli","IaC","database"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"@graphql-codegen/core":"^1.17.8","@graphql-codegen/typescript":"^1.17.11","@graphql-codegen/typescript-operations":"^1.17.10","@graphql-tools/code-file-loader":"^6.2.6","@graphql-tools/graphql-file-loader":"^6.2.6","@graphql-tools/load":"^6.2.5","@graphql-tools/url-loader":"^6.4.0","cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","typescript":"^4.0.5","yargs":"^15.3.1"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/cli-spinner":"^0.2.0","@types/jest":"^26.0.20","@types/node":"^14.14.20","@types/node-fetch":"^2.5.8","@types/prompts":"^2.0.9","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","babel-jest":"^26.6.3","eslint":"^6.8.0","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":">=4.0.0","graphql":"^15.4.0"},"optionalDependencies":{"typescript":"^4.0.5"},"scripts":{"test":"jest","build":"tsc","watch":"tsc --watch","prepublish":"yarn test && yarn build","mkdocs":"mkdocs build"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"523e158ac219bb004fe4d16b77eac9070b02c4c7","_id":"fauna-gql-upload@2.3.0","_nodeVersion":"14.16.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-6Ww8oPZCoMCkIIVn995F0s4CXJK9bCo5wD+MJV26rF24u1J3z1vBfx78TIfXGh0mZWJP2Gcuzd8lcr1JpVIN0w==","shasum":"d0aa2c4c5f5254be2a2282538a1c33c5f6562ecf","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-2.3.0.tgz","fileCount":69,"unpackedSize":150322,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvkpwCRA9TVsSAnZWagAA36QP/ifQNfX6PjKm1GbM85fL\nImm5r+JwMbeTbcHlSvS5nxeKO71RbQ+caDgqZkhLiu9NyUo0S3B8T4tzix8x\nIfSsGXL0FMu0JJvw0QMPlwKia5761QQZarxa4vq1auyXTWUTH1pq8kd70CPQ\n4sPBt7cQfy3c0keUmk/mbYuOQMe7DTcjfftvstEl3e1gmdmJRj3HTrDf/iwJ\nKWBjDhol8BoXEdDqOvyotWVr1E1Yc91l8d7NKuUysUuhjhhOavjmi9pbB6+w\nRHq02N12cAlBRYa7iuyZWQlv/wqlq0kweiro/2m3nNUs+37BhlANBjIbjViS\n4XQt98o29UAs6Wg9ahMTziDNBXWcHSkiPmNE+oopndrOKR3V87h5k16JWyND\nR9jP0nWP1PSyjFwBWYAuWMxusN8RlcBBiJ0+NWlQS5rzQDDDcsAd4L4uV0Y7\nJdUtHCqz1ny5RKQ9V6OzHLQqSE6C74JXIZ4jS1TD0YnP4Z2BMhtms3vi1vH/\nmJmtQUn+RfE9JtdqnYhLDo0gIGj/khR/ypmb9Znk9+AcpOjPdpnU0R8mjoDE\nzRspIxLfXUOC5Pn6rYTjIgLTTo5nYe684zxG2mEaDw1ysEy7Vwq7w71gj/jq\n40ZWIW5xUcw42qxEL+wJmgYNlQ/cPJLrYkosSaKRObapf53Fyd1pLR81WrHs\nDuZb\r\n=z4WJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDv+4HHP4HyK3Y2aaMPm/ANEInJ6f9HSagVVMAlCBUnBAiBQGoHPKAXPYoZXz6P3qOEGvNh3czjq8DLUQ4DieXjDeA=="}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_2.3.0_1623083632012_0.7812469381900078"},"_hasShrinkwrap":false},"2.4.0":{"name":"fauna-gql-upload","version":"2.4.0","description":"Manage your FaunaDB resources in within your project and upload them using a single command","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=12.10.0"},"bin":{"fauna-gql":"dist/cli.js","fgu":"dist/cli.js"},"keywords":["faunadb","graphql","cli","IaC","database"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"@graphql-codegen/core":"^2.3.0","@graphql-codegen/typescript":"^2.4.1","@graphql-codegen/typescript-operations":"^2.2.1","@graphql-tools/code-file-loader":"^7.2.2","@graphql-tools/graphql-file-loader":"^7.3.3","@graphql-tools/load":"^7.4.1","@graphql-tools/url-loader":"^7.5.3","cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","yargs":"^15.3.1","typescript":"^4.0.5"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/cli-spinner":"^0.2.0","@types/fetch-mock":"^7.3.5","@types/jest":"^26.0.20","@types/node":"^14.14.20","@types/node-fetch":"^2.5.8","@types/prompts":"^2.0.9","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","babel-jest":"^26.6.3","eslint":"^6.8.0","fetch-mock":"^9.11.0","fetch-mock-jest":"^1.5.1","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":">=4.0.0","graphql":"^15.4.0"},"optionalDependencies":{"typescript":"^4.0.5"},"scripts":{"test":"jest","build":"tsc","watch":"tsc --watch","prepublish":"yarn test && yarn build","mkdocs":"mkdocs build"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"53f05009e4f9ad252519ad6c92e83904afd465d2","_id":"fauna-gql-upload@2.4.0","_nodeVersion":"14.15.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-NZy3BKT6jg+WO1Vj8UP47jCj8Jk3Fgm4/C8T1eIKMX6Nq3YlFaSc5VGXREKTuEblTBiUBCo7QhmupFaXxhvpww==","shasum":"0f91fea55f6e86ab854bdf5b0cc6b9b9b43d8a21","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-2.4.0.tgz","fileCount":71,"unpackedSize":170857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhr4unCRA9TVsSAnZWagAAFUMQAKJZENi3t3ZFOdWuy1i6\n4ulZcdrx0aTS8Wdz/XHkpxSM3zWPiV1pPOJyc3HXyuTovhBDtqZQxciw7uYS\ntav5qZrjWZSovqpDOfvzHEGDZypX0oem3GQuUx9ZHUpr1GmJ8xoL9BiGZkVp\nr8QnZycIn2Z2dy3Si4knrFrInlpcQ2y7aw57WrDeqn5JGYKaaH8g77zCe5qf\nTFin1My458MRidmRx7/D2hnZvD0By/CF3C+Llxk9ZfJ5ObNe9PN4n/6QHQNv\nJHmDPZUeCJ54RnR4q/xKYIWXnIZCE2sXDYrh7X83vn+mSwXDusi5hYTRBFHP\nBLn8G1Wya3Lvsx8ZsKPwH1MRJWzOuvkUgrTfJWlc47Kn5j3pk5v0uP6BD6Nf\nZR/j3bdr/bZYMjlrs+o1aUY3ukulCqmLybv0vzzwHxUqfX8/lXAK2kstRCBP\nOoOWrIE47VSgSh0BnBSEwCUiFr0qVxTx1yyfe4Acs+7Sx/2hA1X2UubIoHSm\nsbe73nz7WahY/KmWRHmoZmQiIDWGvdxvG3PTmo+hwJ3skx/35JFAz9fynuNv\nY5VdKpaPsZS/N8BaadSp7hS5W+aCNAL4pZys/3IB6NrmBjNgqvTEvnA/zevO\n/hwwhaap0HAS4oVpdli/AU4CUUEnhokjdN5zPi9FSQ9aoVeb67ZGZ+F/S9Yo\n77ZW\r\n=e59n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIASEU0vy2AXYY8tWYyzrzxeuHg7iRD6S3KFHwOUDFRRxAiEAp/CgQI5CMLarQqTy/9zsWj/2FuB2o3JVVk25/+sswJk="}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_2.4.0_1638894503256_0.1584322521674424"},"_hasShrinkwrap":false},"2.4.1":{"name":"fauna-gql-upload","version":"2.4.1","description":"Manage your FaunaDB resources in within your project and upload them using a single command","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=12.10.0"},"bin":{"fauna-gql":"dist/cli.js","fgu":"dist/cli.js"},"keywords":["faunadb","graphql","cli","IaC","database"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"@graphql-codegen/core":"^2.3.0","@graphql-codegen/typescript":"^2.4.1","@graphql-codegen/typescript-operations":"^2.2.1","@graphql-tools/code-file-loader":"^7.2.2","@graphql-tools/graphql-file-loader":"^7.3.3","@graphql-tools/load":"^7.4.1","@graphql-tools/url-loader":"^7.5.3","cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","yargs":"^15.3.1","typescript":"^4.0.5"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/cli-spinner":"^0.2.0","@types/fetch-mock":"^7.3.5","@types/jest":"^26.0.20","@types/node":"^14.14.20","@types/node-fetch":"^2.5.8","@types/prompts":"^2.0.9","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","babel-jest":"^26.6.3","eslint":"^6.8.0","fetch-mock":"^9.11.0","fetch-mock-jest":"^1.5.1","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":">=4.0.0","graphql":"^15.4.0"},"optionalDependencies":{"typescript":"^4.0.5"},"scripts":{"test":"jest","build":"tsc","watch":"tsc --watch","prepublish":"yarn test && yarn build","mkdocs":"mkdocs build"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"c8971b99a3c0485c7dfb67ac6db061a8b7946227","_id":"fauna-gql-upload@2.4.1","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-mtmZ4a/Uf9FC9KJGSoWxoqH6kb9yoeYhNzWmJS2Tll02dglaS6HySJBIf3SCd4WVzEA90FWKbi8QHEOuejnc6w==","shasum":"c8658bf35c0f64e76cb5d928eef7fba7a2c66726","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-2.4.1.tgz","fileCount":74,"unpackedSize":173067,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1gcLCRA9TVsSAnZWagAAqkAP/AhDtc+Bf5iGo7riC321\n2qoaiXU2+LJTU+9kWQBaWovp3zTdMHpO4lOb+CfYt0erH7XzqhwjsyrCG8k5\nQkOQELIz99Y/rP+LLs1ojbjccOA9OwH+oeQW074hsnziYt2Socz5PIXcgrnU\nMhx5H81b1S4gw/e1pNXfi5XDNMXTSli6i350wjbRtefSMY9qjxLeVsa+e35D\nuYBjX4xdT1VAHzxgD9Jg55itcAGngQnYSBjDq/BEGjiP0MPT1K6Q4/58u4kG\nXyhpDYjCrVRa/HHuB1lrysPDVDoatfCzZOHDhnSD1qTKpUvc1XxBCcgpyZl5\n+z2vNrQ6SFWjbkGUD1kbRwubFXot75/Tn9YgvD3u6qjRnLO8QyAh9nBj8R9R\nI/x2cDJDGPcBtLRrO2FK9AHPGGUDuvHopbpPeVuFsilCt4iSlzwaaWIiEa5m\n6rF6bQVWV14QmhO1CVEFgwQie8iefM+o6A51m6sUHGkb+/oKkQDueU8vwoyQ\nO9skbqKSxd8t7BTkaJWhYDuAHryL86GjuJ7rbblthFsWF2UcOH27S4/Cb9iW\nuOV2ZE2R2bd4PT2EoJISWrz63LmKrmRTfhwxNNwRMmwa0z3cTtfUbtZKHosl\nUyHrwDhD7qbXX/dP7d7M78WNda9ZstKIt6LJ6iGxbHSpg1uAKZG5bdsER92w\nrO1a\r\n=qME6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrstGpsFwTvgDWF3QnxeBaKTFqXKEasPpkgT/3h8a7AAIgTdORSm17jciDUpzpzobb2WVloqxQBGW6W2qBymsOZhA="}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_2.4.1_1641416459785_0.11701423747754758"},"_hasShrinkwrap":false},"2.4.2":{"name":"fauna-gql-upload","version":"2.4.2","description":"Manage your FaunaDB resources in within your project and upload them using a single command","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=12.10.0"},"bin":{"fauna-gql":"dist/cli.js","fgu":"dist/cli.js"},"keywords":["faunadb","graphql","cli","IaC","database"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"@graphql-codegen/core":"^2.3.0","@graphql-codegen/typescript":"^2.4.1","@graphql-codegen/typescript-operations":"^2.2.1","@graphql-tools/code-file-loader":"^7.2.2","@graphql-tools/graphql-file-loader":"^7.3.3","@graphql-tools/load":"^7.4.1","@graphql-tools/url-loader":"^7.5.3","cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","yargs":"^15.3.1","typescript":"^4.0.5"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/cli-spinner":"^0.2.0","@types/fetch-mock":"^7.3.5","@types/jest":"^26.0.20","@types/node":"^14.14.20","@types/node-fetch":"^2.5.8","@types/prompts":"^2.0.9","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","babel-jest":"^26.6.3","eslint":"^6.8.0","fetch-mock":"^9.11.0","fetch-mock-jest":"^1.5.1","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":">=4.0.0","graphql":"^15.4.0"},"optionalDependencies":{"typescript":"^4.0.5"},"scripts":{"test":"jest","build":"tsc","watch":"tsc --watch","prepublish":"yarn test && yarn build","mkdocs":"mkdocs build"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"d179d4381f53c679dbe6a76b6154fd78a30c3f30","_id":"fauna-gql-upload@2.4.2","_nodeVersion":"14.17.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-GHbKLP3OqeFTll38mPricgsPC0+j0cZSWRvh1SoUEwtReQQ9JjlP3CGD6iglmgWK2YGwJ4NLvuzVfYV4x3mPHA==","shasum":"0fab53c0a04d565a3317ef8d3085c8a9058f7f04","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-2.4.2.tgz","fileCount":72,"unpackedSize":184887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5ZTGCRA9TVsSAnZWagAAT94QAJ0CnkQ3MjQGMlKN9V9Y\nx8W+FXEkn276YPEeQXKFz5dze+Wo7y7T1nd2aEbKvdgTZdXwRCPS/0mNuGSw\nourcKsUeNwckTUeYqS5X1LVBlWZRXzcnFGCXJEd6SIkmlpPEjS91g3u1b/pX\n5U8ux+txFQYCp3s8xGOZXRCyAxdSDe+IWtpsNV8eFj03uzb/mfHsAMywFoWb\ng5i7p2lHBWBdlBvY7Zf80nu2mRdeu6PJvVrd2x2250KjbLgQHrHkBuBJaD6v\nv0ZyxZ/GHlQj8beOiDwThTQTEWQBQCrUfb0z2T7DI6bVFer3HkldHdhJ9Ew2\n8Nv9WRxfmgoe4Y0a3RAqKmDnw5+TckOcTB2nF2qAC3l6bwIupDqr87eyB1i9\nbEl3sQzwd5cPCkbet2KHYO46Zv3N2QM3SUxpVT9V9by/8dVwE9lz6UZ7+9/l\nzxnmK1fhrmSoIhB5oV2InpU02NW5MhDK94jbxyXjGfUtPUOjYQVw3MtF//rV\nlUQ8627OQQ81rmKRJl9ziLpZ32ePxBtMUbZ9LYPatZrgHlo+gU0ekI8BfaQF\nAF7vBMA54cS9aFUbrgXeKTBwAvBL7gz31cAyczvvR2gZS/t6qGWDDvyRM+ER\nL1Nc2tEiRmIn0RV6drSwb6TGkj7ej7yac60l/b9j/qaFvdoq5DZGet+FUK6M\nCxrZ\r\n=NZwT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC4kHXpcTPW2twZgVtclRm8yh1V4uZu1ZqY9p6uUaakkAiEA4xGoke4r33EKj2bf57QLKcexbs/909NucCQ/W94nvQo="}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_2.4.2_1642435782519_0.18688092443269344"},"_hasShrinkwrap":false},"2.4.3":{"name":"fauna-gql-upload","version":"2.4.3","description":"Manage your FaunaDB resources in within your project and upload them using a single command","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=12.10.0"},"bin":{"fauna-gql":"dist/cli.js","fgu":"dist/cli.js"},"keywords":["faunadb","graphql","cli","IaC","database"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"@graphql-codegen/core":"^2.3.0","@graphql-codegen/typescript":"^2.4.1","@graphql-codegen/typescript-operations":"^2.2.1","@graphql-tools/code-file-loader":"^7.2.2","@graphql-tools/graphql-file-loader":"^7.3.3","@graphql-tools/load":"^7.4.1","@graphql-tools/url-loader":"^7.5.3","cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","yargs":"^15.3.1","typescript":"^4.0.5"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/cli-spinner":"^0.2.0","@types/fetch-mock":"^7.3.5","@types/jest":"^26.0.20","@types/node":"^14.14.20","@types/node-fetch":"^2.5.8","@types/prompts":"^2.0.9","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","babel-jest":"^26.6.3","eslint":"^6.8.0","faunadb":"4.0.0","fetch-mock":"^9.11.0","fetch-mock-jest":"^1.5.1","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":">=4.0.0","graphql":"^15.4.0"},"optionalDependencies":{"typescript":"^4.0.5"},"scripts":{"test":"jest","build":"tsc","watch":"tsc --watch","prepublish":"yarn test && yarn build","mkdocs":"mkdocs build"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"882cc78e09d76e152003452051ad84f815ecf8c0","_id":"fauna-gql-upload@2.4.3","_nodeVersion":"14.17.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-LlsxtqJFAzjc48WbmGVfFJfmLX1VyOuw+u23D6+zOqJzCXL+Vck7AZcCGrt2iEco8oAP1iznB9DTLRdhbfWDlg==","shasum":"01e76406e283f348f5a47c1946e2395efdbe9d76","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-2.4.3.tgz","fileCount":72,"unpackedSize":186731,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDQvaCRA9TVsSAnZWagAAQRkP/2VnS70E+A4S8TuoxGqY\nl9cbL0GNCJirPEH7md7kePWvcZ7ZvK8UuUmUID1Qw/g/8gcVGs4sLHWVo93n\nFb5JslpAP8GZppEDxaGxkqB6shaw6PKZ0suvv7gnBty3n+tWCwKCsdROJmVf\nN8lGkrGvpMTlYEZr0/LryV4LAo9Pg4cUM+Yzoz7EazIG1n+YJKiOfNwsv7lQ\nF6Z+ot0SbGbZgCQHuvkKSNtnGTAATXK/HgqUpkG9wRwR3RPzme7EIqo551N/\nGOJ9PEzn1oXM9fQrhqK5cK72fqZrjCj6bHHn6FabVFX5iz7ksp+IDuAQCzv9\nZ0xMI+dzypai17BA7rXvoPThU34NYzubKQcK7aMiWV81mMKyhHyPXSPYxkkI\n+rb137Nzq7Hh9tkb9xUql+CU6tjLxdzCdW0f2yWoC1dFPotD/gh58Jr1ww8X\nl1/v6BLW0x3tXkFVl2q/dwbjWJFPiVABh1Mxhj8ahRjG5VqdqHZaZelf3dRo\nVQFLZ/33jLsfBsQC4NF0LviL+4yvG4XDsVl9/EfIOChzbOtSfsnMW81qQdfs\n6ohFbfnFlJJzMQ+boRAI/T6pjmi/PpqEG7DDaermLXYgwQf0kuO8LFGQP4Jn\nBygEN/jCbfQFHTDeiqK3u74pfhG0SZJOhCz2tOQLQsbozWdXaaU4yB/Q+cdR\nuMN1\r\n=BRsj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGnN3KOPExtp6oK3HhTzuo5ACxWlzX3UTQPQysr1UsAcAiBnSrH4e4lzK9K8r3lI2h3seYZbECADUGoVpc5OXqZ2tA=="}]},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_2.4.3_1645022169851_0.3225383330798375"},"_hasShrinkwrap":false},"2.5.0":{"name":"fauna-gql-upload","version":"2.5.0","description":"Manage your FaunaDB resources in within your project and upload them using a single command","main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=12.10.0"},"bin":{"fauna-gql":"dist/cli.js","fgu":"dist/cli.js"},"keywords":["faunadb","graphql","cli","IaC","database"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","dependencies":{"@graphql-codegen/core":"^2.3.0","@graphql-codegen/typescript":"^2.4.1","@graphql-codegen/typescript-operations":"^2.2.1","@graphql-tools/code-file-loader":"^7.2.2","@graphql-tools/graphql-file-loader":"^7.3.3","@graphql-tools/load":"^7.4.1","@graphql-tools/url-loader":"^7.5.3","cli-spinner":"^0.2.10","dotenv":"^8.2.0","esbuild":"^0.8.2","node-fetch":"^2.6.1","prompts":"^2.3.2","yargs":"^15.3.1","typescript":"^4.0.5"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/cli-spinner":"^0.2.0","@types/fetch-mock":"^7.3.5","@types/jest":"^26.0.20","@types/node":"^14.14.20","@types/node-fetch":"^2.5.8","@types/prompts":"^2.0.9","@typescript-eslint/eslint-plugin":"^4.12.0","@typescript-eslint/parser":"^4.12.0","babel-jest":"^26.6.3","eslint":"^6.8.0","faunadb":"4.0.0","fetch-mock":"^9.11.0","fetch-mock-jest":"^1.5.1","jest":"^26.0.1","typescript":"^4.0.5"},"peerDependencies":{"faunadb":">=4.0.0","graphql":"^15.4.0 || ^16.0.0"},"optionalDependencies":{"typescript":"^4.0.5"},"scripts":{"test":"jest","build":"tsc","watch":"tsc --watch","prepublish":"yarn test && yarn build","mkdocs":"mkdocs build"},"repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"},"homepage":"https://github.com/Plazide/fauna-gql-upload#readme","gitHead":"859757060c341b5812d9c6cba634301f7815dfcc","_id":"fauna-gql-upload@2.5.0","_nodeVersion":"14.17.0","_npmVersion":"8.5.1","dist":{"integrity":"sha512-WTkia8QpWxyu03IP46TfRiXz7iZbnGf/ScvDLLL76ueUMHFJku2gjC3TCPy9V0GTtnA4qNWeXdgg9PkSgfTziw==","shasum":"54b4397b459e7db2f03997852ddec70b37b3d583","tarball":"https://registry.npmjs.org/fauna-gql-upload/-/fauna-gql-upload-2.5.0.tgz","fileCount":115,"unpackedSize":541906,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiu6VYtoVOEsFaC9fxv2WC449qGltxiUuMr7/DpDEWdwIgJ3bHtvE6OdaYegYxGcX/kKppXJ3gEozGXWIq8Zrfh4I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJircnSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRRg/7BY3yS1cIuF2ytKf0mYYGqBXBXnkWoqub8UEhusHpLX8naMDe\r\ndhqOBnk/xpQL4eA9mdvzuSRAo6GdhALU4rydekw7lE71TzUKseQnKwdUARtI\r\nnWhVaGCJXdV8p9XqDFGwL4TCrOVCM+iheS9ReibBzHOESjEC2lR4dU1Zn9OK\r\nzEvqe+rfuGIzzM+Jy+AhQFrfe4WNqpGftKtapqWakzVWMBfOc9gkzNRKGKpV\r\ng9zEsV8+wPbLZN/gLrw1FlRaaKzkKVozWXvxjcg+jlL/BzX182p2xVsis9qD\r\n+Tr+rHmblBA3cVXDkdx2Ulebsh5BN5fsfrL8CTRg2EWZe0VtIUHjx5Z6q/lH\r\nODBP2WHZGp28WeculhjCLlY+ZsVp/Adquir40rVZ5wj03NsqcWdMZS42OiTH\r\nuQ8HoYYLJ4kcw+7TyLUX1kdEeUH6JvYq3wdnrI7lSEsDVTYvnbxd/1LglAxC\r\n6WxhB0leHF4/KggVDGkX1zoOA+H+34WZvMwIp6e0FZvYQpHYqeKgBbVr8G6T\r\niD/YkxZ4sQ9g0ikxfQyelHHmj+vE9uwzcNEj9fNnUfiVouHmTp8Df4kYfgoT\r\ngUwLLx/ZjIh7yUYohK5Qzkj5o7r/s6sWtLlogv/BpF9eDOYS96AJrnIueoM9\r\nzFgYwT5nIICXw+yk0WmougWvEn23vnSfJO8=\r\n=8XGH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"plazide","email":"callehj@hotmail.se"},"directories":{},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fauna-gql-upload_2.5.0_1655556562571_0.8745324332454478"},"_hasShrinkwrap":false}},"time":{"created":"2020-03-31T14:14:35.167Z","1.0.0":"2020-03-31T14:14:35.299Z","modified":"2022-06-18T12:49:22.838Z","1.0.1":"2020-04-08T14:46:53.844Z","1.1.0":"2020-04-15T14:49:34.855Z","1.2.0":"2020-04-27T14:50:58.707Z","1.3.0":"2020-05-07T13:33:52.869Z","1.3.1":"2020-05-07T13:38:04.712Z","1.4.0":"2020-05-18T14:32:48.515Z","1.5.0":"2020-07-05T11:42:08.254Z","1.5.1":"2020-07-05T11:52:31.725Z","1.6.0":"2020-07-15T10:38:33.556Z","1.6.1":"2020-08-21T07:37:16.761Z","1.6.2":"2020-08-24T16:54:00.112Z","1.6.3":"2020-08-24T17:50:01.293Z","1.7.0":"2020-09-03T13:34:16.982Z","1.8.0":"2020-10-07T14:07:49.364Z","1.9.0-preview":"2020-11-04T15:46:20.064Z","1.9.1-preview":"2020-11-07T09:15:22.875Z","1.9.0":"2020-11-23T11:10:10.808Z","1.9.1":"2020-11-24T09:22:19.233Z","1.9.2":"2020-12-06T11:26:37.991Z","1.9.3":"2020-12-22T09:55:19.595Z","2.0.0":"2021-03-15T13:58:18.376Z","2.0.1":"2021-03-15T21:27:54.952Z","2.0.2":"2021-03-19T17:31:48.907Z","2.1.0":"2021-04-05T10:30:28.728Z","2.2.0":"2021-06-03T13:03:45.018Z","2.3.0":"2021-06-07T16:33:52.240Z","2.4.0":"2021-12-07T16:28:23.433Z","2.4.1":"2022-01-05T21:00:59.957Z","2.4.2":"2022-01-17T16:09:42.744Z","2.4.3":"2022-02-16T14:36:10.058Z","2.5.0":"2022-06-18T12:49:22.772Z"},"maintainers":[{"name":"plazide","email":"callehj@hotmail.se"}],"description":"Manage your FaunaDB resources in within your project and upload them using a single command","keywords":["faunadb","graphql","cli","IaC","database"],"author":{"name":"Carl Hallén Jansson","email":"carl@chjweb.se"},"license":"ISC","readme":"> **Important note:** The minimum supported node version is v12.10.0 \n\n# Fauna GQL Upload\nFauna GQL Upload is a simple CLI to update your [FaunaDB](https://fauna.com) database's GraphQL schema, resolver functions, indexes, and database roles without going to the FaunaDB dashboard. It uses the `https://graphql.fauna.com/import` endpoint to update the schema from a file within your project, and the FQL driver for JavaScript to update/create functions, roles, and indexes.\n\nRead the [documentation](https://fgu-docs.com) to get started!\n\n## Table of contents\n- [Fauna GQL Upload](#fauna-gql-upload)\n\t- [Table of contents](#table-of-contents)\n\t- [Main features](#main-features)\n\t- [Installation](#installation)\n\t- [Documentation](#documentation)\n\t- [Migrating to v2.0.0](#migrating-to-v200)\n\t\t- [No more global installs](#no-more-global-installs)\n\t\t- [You need a local installation of `faunadb`](#you-need-a-local-installation-of-faunadb)\n\t\t- [You might need `faunadb@>=4.0.0`](#you-might-need-faunadb400)\n\t\t- [Changing the secret environment variable](#changing-the-secret-environment-variable)\n\n## Main features\n- 🗄️ Store all your User-defined functions, roles, indexes, and domain data within your project.\n- 📜 Update your schema and other resources without leaving your editor.\n- 🔃 Easily replicate FaunaDB resources across databases and accounts.\n- 📑 Include FaunaDB resources in version control and source code.\n- ✔️ Typescript support.\n- 🔥 GraphQL codegen (using [GraphQL codegen](https://graphql-code-generator.com/)).\n\n> **NOTE:** If you want to use this package with typescript, you do **not** need to build the resources manually. As of version 1.9.0, type-checking and typescript compilation is handled automatically without extra configuration. Read more about [typescript support](#typescript).\n\n## Installation\n\nTo install, run:\n\n```sh\nnpm install --save-dev faunadb fauna-gql-upload\n```\n\nor with yarn:\n\n```sh\nyarn add -D faunadb fauna-gql-upload\n```\n\n## Documentation\n\nTo view the documentation, visit the new [documentation site](https://fgu-docs.com).\n\n## Migrating to v2.0.0\nVersion `2.0.0` hasn't introduced too many breaking changes, so migration should be fairly simple. Here are the changes that might cause issues.\n\n### No more global installs\nFauna GQL Upload previously supported global installation to be used as a CLI. Support for global installations has been removed. If you have a previous global installation, I suggest removing that from your system. To continue using the package, you'll simply have to follow the [getting started section](https://fgu-docs.com/getting-started) in the documentation.\n\n### You need a local installation of `faunadb`\nIt was previously possible to use Fauna GQL Upload without a local `faunadb` installation. This is no longer possible, the package now relies solely on the `faunadb` version that you install.\n\n### You might need `faunadb@>=4.0.0`\nIt is still possible to upload resources with versions before `4.0.0`, but if you are configuring access providers in your project, you will have to use `faunadb@>=4.0.0` since that's when the `AccessProvider` and `CreateAccessProvider` functions were added.\n\nThe version of `faunadb` specified in `peerDependencies` is `>=4.0.0`, but if you won't be using access providers you should still be able to install older versions. You'll just have to ignore the \"incorrect peer depencency\" warnings.\n\n### Changing the secret environment variable\nThe default environment variable for your FaunaDB admin key used to be `FAUNADB_SECRET`. This has now changed to `FGU_SECRET`.\n\nIf you have previously used the default environment variable you now need to either:\n\n- Rename `FAUNADB_SECRET` to `FGU_SECRET` in your environment file\n- Or set the `secretEnv` property in `.fauna.json` to `FAUNADB_SECRET` \n","readmeFilename":"README.md","homepage":"https://github.com/Plazide/fauna-gql-upload#readme","repository":{"type":"git","url":"git+https://github.com/Plazide/fauna-gql-upload.git"},"bugs":{"url":"https://github.com/Plazide/fauna-gql-upload/issues"}}