
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
fetch-graphql
Advanced tools
Super simple GraphQL fetch client, with built in error handling.
npm add fetch-graphql
import fetchGraphQL from 'fetch-graphql'
const query = `
query ListUsers($filter: UserFilter) {
users(filter: $filter) {
id
firstName
lastName
}
}
`
const variables = {
filter: {
firstName: 'Safaiyeh'
}
}
const data = await fetchGraphQL(
'https://yourAPI.com/graphql',
query,
variables,
{ 'header1': 'headerValue1', ...headers }
)
console.log(data.users)
If the GraphQL response contains errors, the returned Promise
will reject with a fully populated error. If there was multiple errors, it rejects with an AggregateError
that contains all the errors.
Pass your API Key to x-api-key header
const headers = {
'x-api-key': '<AWS KEY HERE>'
}
FAQs
Super simple GraphQL fetch client, with built in error handling
The npm package fetch-graphql receives a total of 12 weekly downloads. As such, fetch-graphql popularity was classified as not popular.
We found that fetch-graphql demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.