0.0.1-beta.1 • Published 4 years ago
@o/gqless-logger v0.0.1-beta.1
@gqless/logger
Logs GraphQL queries to the console, with helpful debug information
- 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 { Logger } from '@gqless/logger'
new Logger(client)
// To enable verbose mode: new Logger(client, true)
Verbose mode
Shows additional information, useful for debugging.
- Stack for each query - lets you see why queries were merged into one, or seperated