File tree Expand file tree Collapse file tree 4 files changed +31
-6
lines changed
Samples/ClientSample/Client
Tocsoft.GraphQLCodeGen.MsBuild Expand file tree Collapse file tree 4 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "class" : " Sample.Client.GitHub.GitHubClient" ,
3- ,k "schema": "schema.json"
3+ "schema" : " schema.json" ,
4+ "root" :true
45}
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ export default class GitHubTsClient {
4545 viewerHasStarred
4646 }
4747 }
48- }` ,
48+ }
49+ ` ,
4950 variables : {
5051 repositoyId : repositoyId ,
5152 }
@@ -75,7 +76,8 @@ export default class GitHubTsClient {
7576 login,
7677 bio,
7778 }
78- }` ,
79+ }
80+ ` ,
7981 variables : {
8082 }
8183 } )
@@ -118,7 +120,8 @@ export default class GitHubTsClient {
118120 }
119121 }
120122 }
121- }` ,
123+ }
124+ ` ,
122125 variables : {
123126 type : type ,
124127 query : query ,
@@ -163,7 +166,8 @@ export default class GitHubTsClient {
163166 }
164167 }
165168 }
166- }` ,
169+ }
170+ ` ,
167171 variables : {
168172 login : login ,
169173 repoCount : repoCount ,
@@ -323,6 +327,7 @@ if(json["nodes"]){
323327
324328export class SearchResultItemResult {
325329 __typename :string ;
330+ author ? :ActorResult ;
326331
327332 static fromJS ( json :any ) :SearchResultItemResult {
328333 if ( json == null || json == undefined ) {
@@ -332,6 +337,23 @@ export class SearchResultItemResult {
332337 var result = new SearchResultItemResult ( ) ;
333338
334339 result . __typename = json [ "__typename" ] ;
340+ result . author = ActorResult . fromJS ( json [ "author" ] ) ;
341+
342+ return result ;
343+ }
344+ }
345+
346+ export class ActorResult {
347+ login :string ;
348+
349+ static fromJS ( json :any ) :ActorResult {
350+ if ( json == null || json == undefined ) {
351+ return null ;
352+ }
353+
354+ var result = new ActorResult ( ) ;
355+
356+ result . login = json [ "login" ] ;
335357
336358 return result ;
337359 }
Original file line number Diff line number Diff line change 22 "class" : " Sample.Client.GitHub.GitHubTS" ,
33 "output" : " generated.ts" , // this is relative to this file
44 "format" : " ts" ,
5- "schema" : " schema.json"
5+ "schema" : " schema.json" ,
6+ "root" :true
67}
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ public override bool Execute()
7878 Process process = Process . Start ( new ProcessStartInfo ( realexe , arguments )
7979 {
8080 UseShellExecute = false ,
81+ CreateNoWindow = true ,
8182 RedirectStandardOutput = true ,
8283 RedirectStandardError = true
8384 } ) ;
You can’t perform that action at this time.
0 commit comments