Logger

Verbose log in devtools

Logs GraphQL queries to the console, with helpful debug information

  • Devtools custom formatters - Easily inspect data in devtools
  • Cache snapshot - current state of the cache after a query has been fetched.
  • Result - inspect the response from the GraphQL server
  • Selections - the selections that were used inside the query

Usage

import { client } from './gqless'
import { Logger } from '@gqless/logger'
new Logger(client) // pass true as second arg for verbose mode

Verbose mode

Verbose log in devtools

Shows additional information, useful for debugging.

  • Stack for each query - lets you see why queries were merged into one, or seperated
Last updated on by Sam Denty