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

@graphql-tools/github-loader

Package Overview
Dependencies
Maintainers
3
Versions
1159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/github-loader

A set of utils for faster development of GraphQL tools

  • 5.0.1-alpha-00e0ef2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.7M
increased by5.39%
Maintainers
3
Weekly downloads
 
Created

What is @graphql-tools/github-loader?

The @graphql-tools/github-loader npm package is designed to load GraphQL schemas directly from a GitHub repository. This is particularly useful for developers who want to integrate and manage their GraphQL schemas and documents within their version-controlled source code on GitHub.

What are @graphql-tools/github-loader's main functionalities?

Load GraphQL schemas from GitHub

This feature allows developers to load GraphQL schemas directly from a GitHub repository by specifying the repository path, branch, and schema file location. The function requires a GitHub personal access token for authentication.

import { loadSchema } from '@graphql-tools/github-loader';

async function getSchema() {
  const schema = await loadSchema('github:user/repo#branch:path/to/schema.graphql', {
    token: 'YOUR_GITHUB_PERSONAL_ACCESS_TOKEN'
  });
  return schema;
}

Other packages similar to @graphql-tools/github-loader

FAQs

Package last updated on 29 Apr 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