Skip to content

Commit

Permalink
fixed deep variable looking for vars in value arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
aexol committed Jan 4, 2024
1 parent cfd6d58 commit d85c574
Show file tree
Hide file tree
Showing 9 changed files with 377 additions and 363 deletions.
2 changes: 1 addition & 1 deletion examples/typescript-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript-node",
"version": "1.1.2",
"version": "1.1.3",
"description": "",
"private": true,
"main": "index.js",
Expand Down
94 changes: 47 additions & 47 deletions examples/typescript-node/src/zeus/const.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
/* eslint-disable */

export const AllTypesProps: Record<string,any> = {
JSON: `scalar.JSON` as const,
createCard:{
skills:"SpecialSkills"
},
Query:{
cardById:{
SpecialSkills: "enum" as const,
Card:{
attack:{

}
},
JSON: `scalar.JSON` as const,
Mutation:{
addCard:{
card:"createCard"
Expand All @@ -20,37 +18,59 @@ export const AllTypesProps: Record<string,any> = {

}
},
Card:{
attack:{
Query:{
cardById:{

}
},
SpecialSkills: "enum" as const
createCard:{
skills:"SpecialSkills"
}
}

export const ReturnTypes: Record<string,any> = {
Powerup:{
name:"String"
S3Object:{
bucket:"String",
key:"String",
region:"String"
},
ChangeCard:{
"...on SpecialCard":"SpecialCard",
"...on EffectCard":"EffectCard"
},
Card:{
Attack:"Int",
Children:"Int",
Defense:"Int",
attack:"Card",
cardImage:"S3Object",
description:"String",
id:"ID",
image:"String",
info:"JSON",
name:"String",
skills:"SpecialSkills"
},
Nameable:{
"...on SpecialCard": "SpecialCard",
"...on EffectCard": "EffectCard",
"...on Card": "Card",
"...on CardStack": "CardStack",
"...on SpecialCard": "SpecialCard",
"...on EffectCard": "EffectCard",
name:"String"
},
SpecialCard:{
effect:"String",
JSON: `scalar.JSON` as const,
Powerup:{
name:"String"
},
EffectCard:{
effectSize:"Float",
Mutation:{
addCard:"Card"
},
CardStack:{
cards:"Card",
name:"String"
},
JSON: `scalar.JSON` as const,
ChangeCard:{
"...on SpecialCard":"SpecialCard",
"...on EffectCard":"EffectCard"
Public:{
powerups:"Powerup"
},
Query:{
cardById:"Card",
Expand All @@ -61,35 +81,15 @@ export const ReturnTypes: Record<string,any> = {
nameables:"Nameable",
public:"Public"
},
S3Object:{
bucket:"String",
key:"String",
region:"String"
},
Mutation:{
addCard:"Card"
},
Public:{
powerups:"Powerup"
},
Card:{
Attack:"Int",
Children:"Int",
Defense:"Int",
attack:"Card",
cardImage:"S3Object",
description:"String",
id:"ID",
image:"String",
info:"JSON",
name:"String",
skills:"SpecialSkills"
},
Subscription:{
deck:"Card"
},
CardStack:{
cards:"Card",
SpecialCard:{
effect:"String",
name:"String"
},
EffectCard:{
effectSize:"Float",
name:"String"
}
}
Expand Down
Loading

0 comments on commit d85c574

Please sign in to comment.