UNPKG

@wolox/graphql-inspector-node

Version:

## Summary Simple schema inspector that uses `graphql-inspector` for comparing schemas looking for differences between them and categorizing them into three possible categories: * NON_BREAKING * DANGEROUS * BREAKING

21 lines (16 loc) 502 B
const { success, warning, error } = require('log-symbols'); const status = { NO_ERROR_EXIT_STATUS: 0, ERROR_EXIT_STATUS: 1 }; const argsNames = { IGNORE_BREAKING: 'ignore-breaking', IGNORE_OLD_SCHEMA: 'ignore-old-schema', OLD_SCHEMA: 'old-schema', NEW_SCHEMA: 'new-schema' }; const categories = { BREAKING: 'BREAKING' }; const criticalitySymbols = { BREAKING: error, DANGEROUS: warning, NON_BREAKING: success }; module.exports = { status, categories, argsNames, criticalitySymbols };