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

graphql-markdown

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-markdown - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

2

package.json
{
"name": "graphql-markdown",
"version": "4.0.0",
"version": "4.1.0",
"description": "Generate documentation for your GraphQL schema in Markdown",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -124,3 +124,8 @@ 'use strict'

queryType && types.find(type => type.name === schema.queryType.name)
const objects = types.filter(type => type.kind === 'OBJECT' && type !== query)
const mutationType = schema.mutationType
const mutation =
mutationType && types.find(type => type.name === schema.mutationType.name)
const objects = types.filter(
type => type.kind === 'OBJECT' && type !== query && type !== mutation
)
const enums = types.filter(type => type.kind === 'ENUM')

@@ -148,2 +153,5 @@ const scalars = types.filter(type => type.kind === 'SCALAR')

}
if (mutation) {
printer(' * [Mutation](#mutation)')
}
if (objects.length) {

@@ -184,2 +192,16 @@ printer(' * [Objects](#objects)')

if (mutation) {
printer(
`\n${'#'.repeat(headingLevel + 1)} Mutation ${
mutation.name === 'Mutation' ? '' : '(' + mutation.name + ')'
}`
)
renderObject(mutation, {
skipTitle: true,
headingLevel,
printer,
getTypeURL
})
}
if (objects.length) {

@@ -186,0 +208,0 @@ printer(`\n${'#'.repeat(headingLevel + 1)} Objects`)

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