graphql-hive / graphql-hive/console

provide a better GraphQL Schema design for retrieving deprecated/unused schema parts

Open
#7,782 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
483
Forks
145
Avg merge
2d 5h
Merged PRs (30d)
65

Description

We added the GraphQL schema coordinates that power the unused and deprecated schema explorer on the Hive Console dashboard to the public GraphQL API to give a quick solution for finding unused types/fields and argument sin their GraphQL schema.

The GraphQL schema we exposed is designed with the Hive Console dashboard in mind that can be not straight forward. Instead, we could add a much simpler less complex implementation to our GraphQL schema that is less complex.

Example dream query:

```graphql
fragment UnusedSchemaParts on SchemaVersion {
unusedSchemaParts(period: { absoluteRange: $period }) {
schemaCoordinate
lastUsed
isDeprecated
deprecatedReason
object {
... on GraphQLObjectType {}
... on GraphQLArgument {}
# ....
}
}
}
```

___

Resources:
- [Current API Docs](https://the-guild.dev/graphql/hive/docs/api-reference/graphql-api/unused-deprecated-schema)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.