Skip to content

Commit

Permalink
5.4.1 generation of SDK and clients possible due to crucial change in…
Browse files Browse the repository at this point in the history
… thunderOptions position for scalars argument
  • Loading branch information
aexol committed May 8, 2024
1 parent 669db69 commit 26932f2
Show file tree
Hide file tree
Showing 6 changed files with 374 additions and 356 deletions.
2 changes: 1 addition & 1 deletion examples/typescript-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const run = async () => {
},
atak: {
attack: [
{ cardID: $('cardIds', '[String!]!'), dupa: 1 },
{ cardID: $('cardIds', '[String!]!') },
{
name: true,
__alias: {
Expand Down
84 changes: 42 additions & 42 deletions examples/typescript-node/src/zeus/const.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,57 @@
/* eslint-disable */

export const AllTypesProps: Record<string,any> = {
Card:{
attack:{

}
},
SpecialSkills: "enum" as const,
JSON: `scalar.JSON` as const,
Public:{
powerups:{

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

}
},
Mutation:{
addCard:{
card:"createCard"
}
},
Query:{
cardById:{
JSON: `scalar.JSON` as const,
createCard:{
skills:"SpecialSkills"
},
Card:{
attack:{

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

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

Expand Down
Loading

0 comments on commit 26932f2

Please sign in to comment.