Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom unique identifiers (i.e. uuids) #4

Open
mcabrams opened this issue Sep 4, 2020 · 1 comment
Open

Support custom unique identifiers (i.e. uuids) #4

mcabrams opened this issue Sep 4, 2020 · 1 comment
Assignees

Comments

@mcabrams
Copy link
Contributor

mcabrams commented Sep 4, 2020

Apollo allows you to specify custom identifiers to use for normalization if you want to use something other than an id - it would be a great enhancement if graphql-id-linter supported this. Perhaps one short term enhancement would be to allow users to specify the field they want to lint against (i.e. id by default, but uuid if overrided). Longer term, it would be nice to be able to specify which field to use for each based off its __typename.

@floodfx
Copy link

floodfx commented Sep 4, 2020

Thanks @mcabrams. Would you want to take a shot at a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants