
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
@cdmbase/graphql-schema-collector
Advanced tools
Aggregate Schema module into one Schema by loading .graphql files based a glob pattern
Instantiate a GraphQL Schema by loading GraphQL Schema Language files based on a glob pattern
npm install --save graphql @cdmbase/graphql-schema-collector
Given the following files
schema/schema.graphql
schema {
query: RootQuery
}
schema/rootQuery.graphql
type RootQuery {
testString: String
}
Create a schema with the following code:
const loader = require('@cdmbase/graphql-schema-collector')
loader.loadSchema('./schema/*.graphql', (err, schema) => {
console.log(schema.getQueryType().toString())
})
Create a schema using promises:
const loader = require('@cdmbase/graphql-schema-collector')
loader.loadSchema('./schema/*.graphql').then((schema) => {
console.log(schema.getQueryType().toString())
})
Create a schema using sync:
const loader = require('@cdmbase/graphql-schema-collector')
const schema = loader.loadSchema.sync('./schema/*.graphql')
console.log(schema.getQueryType().toString())
npm run build
npm run test:watch
This project is licensed under Apache License Version 2.0
FAQs
Aggregate Schema module into one Schema by loading .graphql files based a glob pattern
The npm package @cdmbase/graphql-schema-collector receives a total of 0 weekly downloads. As such, @cdmbase/graphql-schema-collector popularity was classified as not popular.
We found that @cdmbase/graphql-schema-collector 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.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.