Skip to content

Commit

Permalink
fix bug scalars
Browse files Browse the repository at this point in the history
  • Loading branch information
aexol committed May 9, 2024
1 parent 26932f2 commit ca77d65
Show file tree
Hide file tree
Showing 9 changed files with 247 additions and 247 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.2.1",
"version": "1.2.2",
"description": "",
"private": true,
"main": "index.js",
Expand Down
76 changes: 38 additions & 38 deletions examples/typescript-node/src/zeus/const.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
/* eslint-disable */

export const AllTypesProps: Record<string,any> = {
Public:{
powerups:{
SpecialSkills: "enum" as const,
Query:{
cardById:{

}
},
Query:{
cardById:{
createCard:{
skills:"SpecialSkills"
},
Card:{
attack:{

}
},
Expand All @@ -17,27 +21,20 @@ export const AllTypesProps: Record<string,any> = {
}
},
JSON: `scalar.JSON` as const,
createCard:{
skills:"SpecialSkills"
},
Card:{
attack:{
Public:{
powerups:{

}
},
SpecialSkills: "enum" as const
}
}

export const ReturnTypes: Record<string,any> = {
Public:{
powerups:"Powerup"
},
ChangeCard:{
"...on SpecialCard":"SpecialCard",
"...on EffectCard":"EffectCard"
},
Subscription:{
deck:"Card"
Nameable:{
"...on CardStack": "CardStack",
"...on Card": "Card",
"...on SpecialCard": "SpecialCard",
"...on EffectCard": "EffectCard",
name:"String"
},
Query:{
cardById:"Card",
Expand All @@ -48,12 +45,8 @@ export const ReturnTypes: Record<string,any> = {
nameables:"Nameable",
public:"Public"
},
Mutation:{
addCard:"Card"
},
JSON: `scalar.JSON` as const,
EffectCard:{
effectSize:"Float",
CardStack:{
cards:"Card",
name:"String"
},
Card:{
Expand All @@ -69,28 +62,35 @@ export const ReturnTypes: Record<string,any> = {
name:"String",
skills:"SpecialSkills"
},
Nameable:{
"...on EffectCard": "EffectCard",
"...on Card": "Card",
"...on SpecialCard": "SpecialCard",
"...on CardStack": "CardStack",
SpecialCard:{
effect:"String",
name:"String"
},
EffectCard:{
effectSize:"Float",
name:"String"
},
Mutation:{
addCard:"Card"
},
JSON: `scalar.JSON` as const,
S3Object:{
bucket:"String",
key:"String",
region:"String"
},
SpecialCard:{
effect:"String",
name:"String"
},
CardStack:{
cards:"Card",
name:"String"
Public:{
powerups:"Powerup"
},
Powerup:{
name:"String"
},
ChangeCard:{
"...on SpecialCard":"SpecialCard",
"...on EffectCard":"EffectCard"
},
Subscription:{
deck:"Card"
}
}

Expand Down
Loading

0 comments on commit ca77d65

Please sign in to comment.