🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@graphql-tools/github-loader

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
g

@graphql-tools/github-loader

A set of utils for faster development of GraphQL tools

8.0.20
latest
Version published
Weekly downloads
3M
-8.26%
Maintainers
0
Weekly downloads
 
Created
Issues
178

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 13 Mar 2025

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