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

Allow QueryRoot derive to drive async gql config #81

Merged
merged 4 commits into from
Oct 19, 2022
Merged

Allow QueryRoot derive to drive async gql config #81

merged 4 commits into from
Oct 19, 2022

Conversation

karatakis
Copy link
Collaborator

@karatakis karatakis commented Oct 16, 2022

PR Info

Adds

  • object_config attribute for QueryRoot derive that gets passed to the async graphql Object macro
  • object_config attribute for QueryRoot derive that gets passed to the async graphql query

Example

#[derive(Debug, seaography::macros::QueryRoot)]
#[seaography(object_config = cache_control(max_age = 60))]
#[seaography(entity = "crate::entities::rental", object_config = cache_control(max_age = 60))]
pub struct QueryRoot;

@karatakis karatakis marked this pull request as ready for review October 16, 2022 20:55
@karatakis karatakis merged commit d5c5196 into main Oct 19, 2022
@karatakis karatakis deleted the fix-73 branch October 21, 2022 13:28
@tyt2y3
Copy link
Member

tyt2y3 commented Oct 23, 2022

Great

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

Successfully merging this pull request may close these issues.

support cache_control
2 participants