dotansimha / dotansimha/graphql-code-generator-community

react-query | query keys to be statically generated for invalidateQueries()

Open
#190 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
137
Forks
195
Avg merge
6h 20m
Merged PRs (30d)
16

Description

**Is your feature request related to a problem? Please describe.**
currently to invalidate certain query on a mutation, i manually check what query key is for targeted queries.

Since key is a string, its easy to uppercase/lowercase typo. and there is no warning getting thrown saying that querykey is not used anywhere.

**Describe the solution you'd like**
Simple solution for this to generate a string variable for queryKey with `operationName` from AST.

So that variable will be utilised for invalidations and stuff

**Describe alternatives you've considered**

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.