serlo / unused-graphql-properties

Example for coverage of GraphQL types and fields at serlo.org

Home Page:https://serlo.github.io/unused-graphql-properties/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coverage of GraphQL endpoints of serlo.org

This package contain helper scripts to show the coverage of GraphQL fields and types of serlo.org.

Setup

  1. Clone repo.
  2. Install dependencies via yarn.
  3. Download GraphQL queries of serlo.org via yarn download-documents. The queries are stored in the directory documents/.

Usage

  • Use yarn show-coverage to show the coverage of GraphQL types and fields in the terminal.
  • Use yarn generate-report to generate a report about the coverage in public/index.html.

Notice

  • In download_documents.ts in the variable repos is defined which repositories are scanned for graphql queries.
  • In download_documents there are also the regexes stored which are used to detect GraphQL statements.

About

Example for coverage of GraphQL types and fields at serlo.org

https://serlo.github.io/unused-graphql-properties/

License:MIT License


Languages

Language:TypeScript 100.0%