
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@northernv/graphql
Advanced tools
npm install -S @northernv/graphql;
yarn add @northernv/graphql;
queries.gql
types.gql
The client query/mutation/fragments are held in /t
. These are used directly by the server when creating contract (integration) tests for the various GQL methods.
Run the npm run build
file to generate the frontend GQL files.
Files ready to be consumed by React/Vue when using Apollo GraphQL loader
In Webpack
loaders: [
{
test: /\.(graphql|gql)$/,
exclude: /node_modules/,
loader: 'graphql-tag/loader'
}
]
In the file
import Unit from '@northernv/vgql/static/unit.gql'
const { data, errors } = await this.$apollo.query({
query: Unit,
variables: {
input: { ... },
}
})
Files ready to be consumed by Apollo, no need for graphql-tag
import Unit from '@northernv/vgql/json/unit'
const { data, errors } = await this.$apollo.query({
query: Unit,
variables: {
input: { ... },
}
})
Files used with graphql-tag
import Unit from '@northernv/vgql/gql/unit'
import gql from 'graphql-tag'
const { data, errors } = await this.$apollo.query({
query: gql`Unit`,
variables: {
input: { ... },
}
})
@timestamp
: Adds createdAt
, updatedAt
, deletedAt
properties to types timestamp-directive.js
In your models, that are Javascript classes, include a static function called loaders
that returns an object of dataloadersFAQs
A framework for graphql processing
We found that @northernv/graphql 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.