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

fix-contentful-schema

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fix-contentful-schema

The GraphQL schema Contentful generates has all of the fields for the content types listed as optional. This is technically correct as if you change a field to be required all of the items where it isn't filled out will remain published, but for me the ha

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fix-contentful-schema

The GraphQL schema Contentful generates has all of the fields for the content types listed as optional. This is technically correct as if you change a field to be required all of the items where it isn't filled out will remain published, but for me the hassle of having to write a bunch of null checks isn't worth mitigating this scenario. This is a small command line tool which will edit the content type fields in a JSON GraphQL schema (generated by graphql-code-generator's introspection plugin) to match the Contentful definition.

FAQs

Package last updated on 15 Jan 2021

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