Skip to content

Refactor object proc macro attributes to support parameter attributes #421

Closed
@theduke

Description

@theduke

Function parameter attributes are getting stabilized with 1.39. (see rust-lang/rust#60406 (comment)).

This means we can refactor the argument customization of the object proc macro.

This is currently awkward due to the lack of above feature ( see https://graphql-rust.github.io/juniper/current/types/objects/complex_fields.html#customizing-arguments ).

  • Supported arguments: #[graphql(rename = "...", default = expr, description = "...")]
  • Old style should remain supported for now but with a deprecation warning (simple println in the macro)
  • can be implemented right now with a feature flag, which can be removed once 1.39 is released

Metadata

Metadata

Assignees

Labels

enhancementImprovement of existing features or bugfixk::apiRelated to API (application interface)semver::breakingBreaking change in terms of SemVer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions