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

@apollo/cache-control-types

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo/cache-control-types

TypeScript types for Apollo Server info.cacheControl

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Cache Control types

This package exports various TypeScript types related to Apollo Server's cache policy calculation.

Specifically, it gives a type-safe way to get the info.cacheControl field in resolvers. Either declare your resolver's info argument to be of type GraphQLResolveInfoWithCacheControl (perhaps with the graphql-code-generator typescript-resolvers customResolveInfo option), or use the maybeCacheControlFromInfo or cacheControlFromInfo functions to extract info.cacheControl in a type-safe way.

Keywords

FAQs

Package last updated on 26 Jun 2023

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