Socket
Socket
Sign inDemoInstall

@times-components/schema

Package Overview
Dependencies
4
Maintainers
3
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@times-components/schema


Version published
Maintainers
3
Created

Readme

Source

Schema

The GraphQL schema that is generated from our GraphQL endpoint is used primarily for two cases, linting and helping out Apollo with a fragment matcher.

This package auto-generates the schema.json necessary for linting at install time (provided you set the GRAPHQL_ENDPOINT envar) and also the fragmentMatcher. By inlining it we can statically bundle the minimal amount of code for the Apollo Client to be happy, with no runtime overhead.

We do this at install time in order to fail the builds as soon as there's a mismatch with our server side implementation.

Usage

Everything should be generated at install time but you can regenerate by running something like:

GRAPHQL_ENDPOINT='my.endpoint.io/graphql' yarn postinstall

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Keywords

FAQs

Last updated on 19 Apr 2024

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc