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

apollo-cache-logger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-cache-logger

Apollo Cache Logger

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Apollo Cache Logger

npm version Twitter Follow

Installation

npm install --save-dev apollo-cache-logger

Usage

import LogCache from 'apollo-cache-logger';

const cache = new LogCache(new InMemoryCache(), { logger: msg => console.log(msg) });

Sample output:

read(query CounterState {
  counterState @client {
    counter
  }
}) -> {"counterState":{"counter":1,"__typename":"CounterState"}}
diff(query CounterState {
  counterState @client {
    counter
    __typename
  }
}) -> {"result":{"counterState":{"counter":1,"__typename":"CounterState"}},"complete":true}
read(query counterQuery {
  counter {
    amount
  }
}) -> {"counter":{"amount":19,"__typename":"Counter"}}

License

Copyright © 2018 SysGears LTD. This source code is licensed under the MIT license.

Keywords

FAQs

Package last updated on 30 Apr 2018

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