Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default ({ store }, inject) => {
VuexORM.install(database)(store)
// 主にデバッグ用
inject('orm', orm)
}
const executableSchema = makeExecutableSchema({
typeDefs,
resolvers
});
link = new SchemaLink({ schema: executableSchema });
VuexORM.use(VuexORMGraphQLPlugin, {
database: database,
link,
headers,
adapter
});
const store = new Vuex.Store({
plugins: [VuexORM.install(database)]
});
return [store, VuexORMGraphQLPlugin.instance];
}