You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@cloudcycle/postgraphile-graphql-schema-utils

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudcycle/postgraphile-graphql-schema-utils

Utilities for extracting information from GraphQL schemas generated by Postgraphile

0.1.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

postgraphile-graphql-schema-utils

Utilities for extracting information from GraphQL schemas generated by Postgraphile

Example Usage

The code below demonstrates the usage of this library:

import { resolverNamesInSchema, loadSchemaFromFileSync } from '@cloudcycle/postgraphile-graphql-schema-utils';

const schema = loadSchemaFromFileSync('schema.graphql');
const {query, mutation} = resolverNamesInSchema(schema);
console.log(JSON.stringify('List of queries': query));
console.log(JSON.stringify('List of mutations': mutation));

An async API for loading the schema also available as loadSchemaFromFile.

Roadmap

  • Add unit tests.
  • Additional data-sources.

Keywords

Postgraphile

FAQs

Package last updated on 22 Oct 2022

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