Skip to content

Commit a0e9d48

Browse files
committed
Derive Serialize on generated types
1 parent 326b55d commit a0e9d48

File tree

1 file changed

+1
-1
lines changed
  • shopify_function_macro/src

1 file changed

+1
-1
lines changed

shopify_function_macro/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ fn generate_struct(name: &str, query_path: &str, schema_path: &str) -> TokenStre
352352
#[graphql(
353353
query_path = #query_path,
354354
schema_path = #schema_path,
355-
response_derives = "Clone,Debug,PartialEq,Eq,Deserialize",
355+
response_derives = "Clone,Debug,PartialEq,Eq,Deserialize,Serialize",
356356
variables_derives = "Clone,Debug,PartialEq,Eq,Deserialize",
357357
skip_serializing_none
358358
)]

0 commit comments

Comments
 (0)