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

graphqlvisualizer

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphqlvisualizer

This is a solution that can be used for visualization of an existing graphQL Schema, without the need of having an implemented service, in order to explore the API.

1.0.6
Source
npmnpm
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

Description:

GraphQlVisualizer is a tool that enables you to visualize existing GraphQL schemas. It lets you explore all aspects of a schema without the need of a functional serverice side. Simply load zour schema froma local file or from a string and get a generated html page, wich will contain graphical representaion of your scehma in a simple, intuitive and interavctive UI. File will be generated inside src/generated directory, under the name of schemaVisualized.html

Functionalities:

  • Visualize schema from local file
  • visualiye schema from string

Installation: Install using NPM npm install --save graphqlvisualizer

Usage: Below is an example of how this package could be used

import GraphqlBirdseye from "graphqlvisualizer";

var schemaString = type User{ id:ID! firstname:String lastname:String address:Address } type Address{ postalCode:Int city:String } type Query{ """ Returns user with specified id """ user(id: ID): User """ Returns a list of users that have the specified address """ usersOnAddress(address: Address): [User] } type Mutation{ createAddress(postalCode:Int!, city:String): Address deleteUser(id:ID):Boolean };

var schema = GenerateHtmlFromString(schemaString);

FAQs

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