Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-inspector/loaders

Package Overview
Dependencies
Maintainers
3
Versions
427
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-inspector/loaders

Loaders in GraphQL Inspector

  • 4.0.4-alpha-20240526135307-0f532b0bdc0a6f7bab7e12fc25a75458a89d4d4a
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
137K
increased by15.16%
Maintainers
3
Weekly downloads
 
Created

What is @graphql-inspector/loaders?

@graphql-inspector/loaders is a package that provides various loaders for GraphQL schemas and documents. It allows you to load GraphQL schemas from different sources such as files, URLs, and more, making it easier to work with GraphQL in different environments.

What are @graphql-inspector/loaders's main functionalities?

Load Schema from File

This feature allows you to load a GraphQL schema from a local file. The `loadSchema` function takes the file path as an argument and returns the schema.

const { loadSchema } = require('@graphql-inspector/loaders');
const schema = loadSchema('path/to/schema.graphql');
console.log(schema);

Load Schema from URL

This feature allows you to load a GraphQL schema from a URL. The `loadSchema` function takes the URL as an argument and returns the schema.

const { loadSchema } = require('@graphql-inspector/loaders');
const schema = loadSchema('https://example.com/schema.graphql');
console.log(schema);

Load Documents from File

This feature allows you to load GraphQL documents from a local file. The `loadDocuments` function takes the file path as an argument and returns the documents.

const { loadDocuments } = require('@graphql-inspector/loaders');
const documents = loadDocuments('path/to/documents.graphql');
console.log(documents);

Load Documents from URL

This feature allows you to load GraphQL documents from a URL. The `loadDocuments` function takes the URL as an argument and returns the documents.

const { loadDocuments } = require('@graphql-inspector/loaders');
const documents = loadDocuments('https://example.com/documents.graphql');
console.log(documents);

Other packages similar to @graphql-inspector/loaders

Keywords

FAQs

Package last updated on 26 May 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc