How to use the apollo-boost.mapState function in apollo-boost

To help you get started, we’ve selected a few apollo-boost examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alajfit / vuex-apollo / dist / vuex-apollo.esm.js View on Github external
},{}],1:[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createNamespacedHelpers=exports.mapState=exports.mapGetters=exports.mapActions=void 0;var e=require("vuex"),t=u(e),r=require("graphql-tag"),a=u(r),s=require("./store"),o=u(s),p=require("./apollo"),l=u(p);function u(e){return e&&e.__esModule?e:{default:e}}const d={install(e,r){e.use(t.default);const s=(0,l.default)(r),p=(0,o.default)(t.default,{apollo:s,gql:a.default});r.modules.forEach(e=>p.registerModule(e.name,e.store)),e.prototype.$store=p}},c=exports.mapActions=e.mapActions,m=exports.mapGetters=e.mapGetters,i=exports.mapState=e.mapState,n=exports.createNamespacedHelpers=e.createNamespacedHelpers;exports.default=d;
},{"./store":3,"./apollo":4}]},{},[1])