
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
graphql-cli-validate-magento-pwa-queries
Advanced tools
graphql-cli plugin for validating all queries in a Magento 2 PWA project
Validate your project's GraphQL queries against a schema.
yarn add graphql-cli graphql-cli-validate-magento-pwa-queries
Given the following .graphqlconfig
:
{
"projects": {
"myApp": {
"schemaPath": "mySchema.json",
"extensions": {
"endpoints": {
"default": "https://myEndpoint.com/graphql"
},
"validate-magento-pwa-queries": {
"clients": ["apollo", "literal"],
"filesGlob": "src/**/*.{js,graphql,gql}"
}
}
}
}
}
The command
graphql-cli get-schema --project myApp
will download the GraphQL schema
from https://myEndpoint.com/graphql
and store it in mySchema.json
.
Then the command
graphql-cli validate-magento-pwa-queries --project myApp
will validate all apollo
and literal
GraphQL queries it finds in .js
, .graphql
, or .gql
files in the src/
directory
against that schema.
This plugin supports the following command line options:
Option | Description | Type | Default |
---|---|---|---|
--project , -p | The project name as specified in .graphqlconfig . | string | "" |
You can also specifiy the following options in your .graphqlconfig
:
Option | Description | Type |
---|---|---|
--clients , -c | GraphQL clients in use in this project. | array |
--filesGlob , -f | A glob used to target files for validation. | string |
FAQs
graphql-cli plugin for validating all queries in a Magento 2 PWA project
The npm package graphql-cli-validate-magento-pwa-queries receives a total of 187 weekly downloads. As such, graphql-cli-validate-magento-pwa-queries popularity was classified as not popular.
We found that graphql-cli-validate-magento-pwa-queries demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.