
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
stepzen-graphiql
Advanced tools
npm install --save stepzen-graphiql
import { GraphiQLExplorer } from "stepzen-graphiql";
import "stepzen-graphiql/style.css";
function App() {
const config: GraphiQLConfig = {
endpoint: "https://your-graphql-endpoint.com/graphql",
};
return <GraphiQLExplorer config={config} />;
}
You can use the GraphiQLExplorer component directly to customize behavior and layout, including:
Providing a custom GraphQL endpoint via config
Showing/hiding the explorer's URL tab
import { GraphiQLExplorer, GraphiQLConfig } from "stepzen-graphiql";
import "stepzen-graphiql/style.css";
function App() {
const config: GraphiQLConfig = {
endpoint: "https://your-graphql-endpoint.com/graphql",
showExplorerHeader: true, // Enables the explorer's URL input tab with toggle
};
function fetchCostData(query: string) {
console.log("Fetching cost data: " + query);
}
function queryCompleted(result: string) {
console.log("Fetched data: " + result);
}
return (
<GraphiQLExplorer
config={config}
onEditQuery={fetchCostData}
onFetchResult={queryCompleted}
>
</GraphiQLExplorer>
);
}
export default App;
Prop | Type | Description |
---|---|---|
endpoint | string | GraphQL endpoint to be used in the explorer |
showExplorerHeader | boolean | Toggles visibility of the URL tab with hide/show functionality |
onEditQuery | function | Callback triggered when the query is edited |
onFetchResult | function | Callback triggered when the query result is fetched |
FAQs
Stepzen Graphiql Explorer
The npm package stepzen-graphiql receives a total of 114 weekly downloads. As such, stepzen-graphiql popularity was classified as not popular.
We found that stepzen-graphiql 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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.