https://github.com/potatomaster101/graphql-reverse
GraphQL object reverse lookup tool
https://github.com/potatomaster101/graphql-reverse
graphql graphql-schema graphql-tools
Last synced: 3 months ago
JSON representation
GraphQL object reverse lookup tool
- Host: GitHub
- URL: https://github.com/potatomaster101/graphql-reverse
- Owner: PotatoMaster101
- License: gpl-3.0
- Created: 2025-01-16T23:04:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-18T11:02:23.000Z (over 1 year ago)
- Last Synced: 2025-01-18T11:26:55.174Z (over 1 year ago)
- Topics: graphql, graphql-schema, graphql-tools
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RevQL
GraphQL object reverse lookup tool. The goal of this tool is to:
- Search for all queries/mutations to a specific object
- Search for all queries/mutations to any object containing a specific field
## Building
```
cargo build --release
```
## Usage
```
Usage: revql [OPTIONS]
Arguments:
Path to JSON file containing the introspection
Type/field name to search for
Options:
-c, --containing Search name contains instead of exact match
-t, --type Search for types only
-f, --field Search for fields only
--show-relay Shows relay types
-h, --help Print help
```
## Examples
Search for all queries/mutations to a type named `User`:
```
revql --type schema.json User
```
Search for all queries/mutations to any type with `User` in it:
```
revql --type --containing schema.json User
```
Search for all queries/mutations to any type with a field named `username`:
```
revql --field schema.json username
```
Search for all queries/mutations to any type or type containing field named `name`:
```
revql schema.json name
```
Search for all queries/mutations to a type named `User` and show all relay nodes:
```
revql --type --show-relay schema.json User
```