Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
graphql-document-collector
Advanced tools
Load up smartly, in one location, all of the GraphQL queries/mutations/subscriptions of your project
Load up smartly, in one location, all of the GraphQL queries/mutations/subscriptions of your project
npm i -g graphql-document-collector
collect-gql
has a straightforward CLI interface to precompile all of your GraphQL documents in one definition file:
collect-gql '$glob' > $dest
Collect all .graphql
files of your project in a single documents.json
definition file:
collect-gql '**/*.graphql' > documents.json
This can be exploited afterwards like this:
// Note: if you are using webpack, you will need to setup a 'json-loader'
const graphqlDocs = require('./documents.json');
// You can use any client able to read some graphql document AST
apolloClient.query({query: graphqlDocs['queries/ListMovies.graphql']})
.then(({data}) => {/* ... */});
Note: you don't have to worry about loading fragments, they are already resolved in the document.
FAQs
Load up smartly, in one location, all of the GraphQL queries/mutations/subscriptions of your project
The npm package graphql-document-collector receives a total of 20,002 weekly downloads. As such, graphql-document-collector popularity was classified as popular.
We found that graphql-document-collector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.