Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Example for coverage of GraphQL types and fields at serlo.org
https://github.com/serlo/unused-graphql-properties

Last synced: 4 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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`](./download_documents.ts) in the variable `repos` is defined which repositories are scanned for graphql queries.
- In [`download_documents`](./download_documents.ts) there are also the regexes stored which are used to detect GraphQL statements.