File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
compiler/crates/persisted-mocks/src Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ use schema::SDLSchema;
15
15
#[ derive( serde:: Serialize ) ]
16
16
struct QueryForMock {
17
17
signature : & ' static str ,
18
+ id : String ,
18
19
operation : String ,
19
20
}
20
21
@@ -30,12 +31,15 @@ pub fn generate_persisted_mocks(
30
31
if let ArtifactContent :: Operation {
31
32
text : Some ( text) ,
32
33
id_and_text_hash : Some ( QueryID :: Persisted { id, .. } ) ,
34
+ normalization_operation,
33
35
..
34
36
} = & artifact. content
35
37
{
36
- let full_path = folder. join ( format ! ( "{id}.json" ) ) ;
38
+ let name = normalization_operation. name . item ;
39
+ let full_path = folder. join ( format ! ( "{name}.json" ) ) ;
37
40
let query = QueryForMock {
38
41
signature : signedsource:: SIGNING_TOKEN ,
42
+ id : id. clone ( ) ,
39
43
operation : text. clone ( ) ,
40
44
} ;
41
45
let str = serde_json:: to_string_pretty ( & query) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments