graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Document graphql macro attributes

Open llGaetanll opened this issue 2 years ago • 1 comments

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!

llGaetanll avatar Sep 06 '22 17:09 llGaetanll

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

tomhoule avatar Sep 07 '22 11:09 tomhoule