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

@graphql-inspector/loaders

Package Overview
Dependencies
Maintainers
2
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

  • 2.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31K
decreased by-80.76%
Maintainers
2
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 11 Aug 2020

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