
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@huntersofbook/vue-apollo
Advanced tools
Graphql Vue 3 Apollo
pnpm add @huntersofbook/vue-apollo
Code for the demo is in playground folder.
Code for the demo is in playground-nuxt folder.
import { DefaultApolloClient } from '@huntersofbook/vue-apollo'
import { ApolloClient, InMemoryCache, createHttpLink } from '@apollo/client/core'
// HTTP connection to the API
const httpLink = createHttpLink({
// You should use an absolute URL here
uri: 'https://countries.trevorblades.com',
})
// Cache implementation
const cache = new InMemoryCache()
// Create the apollo client
const apolloClient = new ApolloClient({
link: httpLink,
cache,
})
provide(DefaultApolloClient, apolloClient)
pnpm add -D @graphql-codegen/add @graphql-codegen/cli @graphql-codegen/typescript @graphql-codegen/named-operations-object @graphql-codegen/typescript-apollo-client-helpers @graphql-codegen/typescript-operations @graphql-codegen/typescript-vue-apollo
codegen.yml
overwrite: true
documents: ./src/graphql/**/*.graphql
schema: ./schema.graphql
emitLegacyCommonJSImports: false
generates:
./src/graphql/types.ts:
plugins:
- add: {content: '// THIS FILE IS GENERATED, DO NOT EDIT!'}
- add: {content: '/* eslint-disable eslint-comments/no-unlimited-disable */'}
- add: {content: '/* tslint:disable */'}
- add: {content: '/* eslint-disable */'}
- add: {content: // @ts-nocheck}
- typescript
- typescript-operations
- typescript-apollo-client-helpers
- typescript-vue-apollo
- named-operations-object
config:
enumsAsTypes: true
withCompositionFunctions: true
vueApolloComposableImportFrom: '@huntersofbook/vue-apollo'
vueCompositionApiImportFrom: vue
pnpm graphql-codegen-esm --config codegen.yml
corepack enable
(use npm i -g corepack
for Node.js < 16.10)pnpm install
pnpm dev:prepare
pnpm dev
to start playground in development modeCodes in this build are inspired by Vue and from there the codes were copied. Thanks you for your great work. Thank you Akryum Thank you SSR code fabis94 and PR
MIT License © 2023-PRESENT productdevbook
FAQs
Apollo GraphQL for Vue 3
The npm package @huntersofbook/vue-apollo receives a total of 27 weekly downloads. As such, @huntersofbook/vue-apollo popularity was classified as not popular.
We found that @huntersofbook/vue-apollo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.