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

Document graphql macro attributes #434

Open
llGaetanll opened this issue Sep 6, 2022 · 1 comment
Open

Document graphql macro attributes #434

llGaetanll opened this issue Sep 6, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@llGaetanll
Copy link

I was able to find out about attributes in the code here, but found them nowhere in the docs (maybe I'm just not looking in the right place?)

let variables_derives = attributes::extract_attr(input, "variables_derives").ok();
let response_derives = attributes::extract_attr(input, "response_derives").ok();
let custom_scalars_module = attributes::extract_attr(input, "custom_scalars_module").ok();
let extern_enums = attributes::extract_attr_list(input, "extern_enums").ok();
let fragments_other_variant: bool = attributes::extract_fragments_other_variant(input);

It would be very helpful for new users to document which attributes are available!

@tomhoule tomhoule added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Sep 7, 2022
@tomhoule
Copy link
Member

tomhoule commented Sep 7, 2022

I agree the docs could get some more love. I'd be happy to review a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants