{"_id":"@ejez/quasar-app-extension-graphql","_rev":"7-5451dfe2f46e50723d0ff76076636d29","time":{"0.2.1":"2020-02-13T11:15:57.074Z","created":"2020-02-13T11:16:30.706Z","0.2.2":"2020-02-13T11:16:30.876Z","modified":"2022-04-05T07:01:30.858Z"},"name":"@ejez/quasar-app-extension-graphql","dist-tags":{"latest":"0.2.2"},"versions":{"0.2.2":{"name":"@ejez/quasar-app-extension-graphql","version":"0.2.2","description":"A Quasar app extension to add GraphQL support","author":{"name":"Ejez","email":"ejez@protonmail.ch"},"license":"MIT","main":"src/index.js","scripts":{"test":"echo \"No test specified\" && exit 0"},"repository":{"type":"git","url":"git+https://github.com/ejez/quasar-app-extension-graphql.git"},"bugs":{"url":"https://github.com/ejez/quasar-app-extension-graphql/issues"},"homepage":"https://github.com/ejez/quasar-app-extension-graphql","engines":{"node":">= 8.9.0","npm":">= 5.6.0","yarn":">= 1.6.0"},"dependencies":{"apollo-cache-inmemory":"^1.6.5","apollo-client":"^2.6.8","apollo-link":"^1.2.13","apollo-link-http":"^1.5.16","graphql":"^14.6.0","graphql-tag":"^2.10.3","node-fetch":"^2.6.0","vue-apollo":"^3.0.3"},"gitHead":"ae131546444d6b6f64eaa4cdc49596217184201e","_id":"@ejez/quasar-app-extension-graphql@0.2.2","_nodeVersion":"12.14.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-gyewOL24P60b3sDMaifuptJ0MMQsI4RCMmMu6YxZOd/rHyBTVROJxac45wSR+RY9JYJWqh8pRwr097yni2iaUA==","shasum":"a90f4f7da357592065ca0602e2558764aedce129","tarball":"https://registry.npmjs.org/@ejez/quasar-app-extension-graphql/-/quasar-app-extension-graphql-0.2.2.tgz","fileCount":12,"unpackedSize":11248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRTAPCRA9TVsSAnZWagAAz+AP/jIlch1CUuMvSaFDjLKi\nTzbfWjKgFAuEB3Qld2E/QPlemp3j7kBoyREm/SRYSPcOnNfQ41YfufnOv0tr\nQO6dT/aX6dukRdAGdnc32r7YyiUCeju6mvC3GHzmSL+Z4yawj5Ftv5SXyF4Z\nNLjXuhPxDon8ImpjT7gw8cAcOsXJPlIZc90rrj3nfp8WwAXirwMDdEPauGXQ\ncNzA7TPcj9ATgEKlk7R2U6egiThP+Cr+DzYAcWD3sNye6qMhG5qPv2ykaNPw\neoEXWwRdYTJVyR2QnE5ue4dTatw/cVbPjpj/o5mWTA23KzR26Rxx+Ovsxpf/\nhmVfWJdMCHBkTdLsMaBOdOdPR0ubwQRFE1xelIBP2RrL8a/kF0VwUFmOzj6f\nQJu0GvY4BoRGLrvfT13lPBzczzz0i33SRMyWCQTCAro5iWjLdUv8nQIe/Qbb\nzaM7lWUh22fw0H/4RaP/fYLJrgHka2S55HR7GF9FCCRnMO8kpQjdjzWxrfm8\nGhgGwOHzMe6+3OMJFNdzmyZ4Bgy6xjhQZ7NzrGltGQF3RifMdNE1Jswp19p3\n7Fz+rKlmLl13e4uSE2LwLuB+GAVpehdAbfDBpEujVKaeXcfkbadE3UUQFwxP\n+9Ta/nIt1W582zXGxYiuUyytIgc1oH9KVv5CL+cskRo+imyD0PnzlJX832pU\nQofC\r\n=DOPC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG1vMa98EZsk4WL7QGqzXNx4Pm4jWhP9BkX7UG8hWfCdAiAOYkiuc45pxW0dwkI0fvg27VACvTvDpYNXx4+rll0U4w=="}]},"maintainers":[{"name":"ejez","email":"ejez@protonmail.ch"}],"_npmUser":{"name":"ejez","email":"ejez@protonmail.ch"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quasar-app-extension-graphql_0.2.2_1581592590735_0.19032487711480428"},"_hasShrinkwrap":false}},"maintainers":[{"name":"ejez","email":"ejez@protonmail.ch"}],"description":"A Quasar app extension to add GraphQL support","homepage":"https://github.com/ejez/quasar-app-extension-graphql","repository":{"type":"git","url":"git+https://github.com/ejez/quasar-app-extension-graphql.git"},"author":{"name":"Ejez","email":"ejez@protonmail.ch"},"bugs":{"url":"https://github.com/ejez/quasar-app-extension-graphql/issues"},"license":"MIT","readme":"# Quasar GraphQL App Extension\n\n## Introduction\n\nThis app extension adds graphql support to your quasar projects.\n\nIt uses [Apollo GraphQL](https://www.apollographql.com) and its vue plugin [Vue Apollo](https://apollo.vuejs.org)\n\nServer side rendering (SSR) mode is supported by this extension.\n\nUsing this extension is the easy way to add GraphQL support, but if you wish to have full control of the graphql integration code, you can opt for a manual setup described here: [github.com/ejez/quasargraphql](https://github.com/ejez/quasargraphql)\n\n## Installation\n\n```sh\nquasar ext add @ejez/graphql\n```\n\nQuasar CLI will retrieve the extension from NPM ([@ejez/quasar-app-extension-graphql](https://www.npmjs.com/package/@ejez/quasar-app-extension-graphql))\n\n**Note:** Some code will be added to the html template file of your app (`src/index.template.html`)\n\n## Prompts\n\nYou will be prompted to enter the URI of your GraphQL endpoint. You can skip this and instead provide the URI using an env variable when running quasar:\n\n```sh\nGRAPHQL_URI=https://prod.example.com/graphql quasar build\nGRAPHQL_URI=https://dev.example.com/graphql quasar dev\n```\n\nIf you don't have a GraphQL endpoint yet, you can create one at [FakeQL](https://fakeql.com) to experiment with.\n\n## Uninstall\n\n```sh\nquasar ext remove @ejez/graphql\n```\n\n**Note:** The added code to the html template file (`src/index.template.html`) will be removed.\n\n## Usage\n\nCheck the guide in [Vue Apollo docs](https://apollo.vuejs.org/guide/apollo/)\n\nExample usage:\n\n```html\n<template>\n  <div>\n    <!-- when the query response is not received yet, data from it is undefined,\n    so we need to use v-if -->\n    <div v-if=\"post\">\n      GraphQL query result:<br>{{ post.title }}\n    </div>\n    <div v-else>\n      loading...\n    </div>\n  </div>\n</template>\n\n<script>\nimport gql from 'graphql-tag'\n\nexport default {\n  // https://apollo.vuejs.org/guide/apollo/#usage-in-vue-components\n  apollo: {\n    post: {\n      query: gql`query {\n        post(id: 5) {\n          title\n        }\n      }`\n    }\n  }\n}\n</script>\n```\n","readmeFilename":"README.md"}