Skip to content

Commit fc90310

Browse files
committed
fix: use descriptionsByRole with generically usable JSON object
1 parent 4c9f536 commit fc90310

File tree

5 files changed

+13
-32
lines changed

5 files changed

+13
-32
lines changed

apps/demo-game/prisma/schema/platform.prisma

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,7 @@ model Achievement {
345345
346346
name String
347347
description String
348-
descriptionBuyer String?
349-
descriptionSeller String?
348+
descriptionsByRole Json?
350349
image String?
351350
352351
onEventId String

apps/demo-game/src/graphql/generated/nexus-typegen.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ export interface NexusGenObjects {
9393
activePeriods: number[]; // [Int!]!
9494
conditions?: NexusGenScalars['JSON'] | null; // JSON
9595
description: string; // String!
96-
descriptionBuyer?: string | null; // String
97-
descriptionSeller?: string | null; // String
96+
descriptionsByRole?: NexusGenScalars['JSONObject'] | null; // JSONObject
9897
id: string; // ID!
9998
image?: string | null; // String
10099
name: string; // String!
@@ -264,8 +263,7 @@ export interface NexusGenFieldTypes {
264263
activePeriods: number[]; // [Int!]!
265264
conditions: NexusGenScalars['JSON'] | null; // JSON
266265
description: string; // String!
267-
descriptionBuyer: string | null; // String
268-
descriptionSeller: string | null; // String
266+
descriptionsByRole: NexusGenScalars['JSONObject'] | null; // JSONObject
269267
id: string; // ID!
270268
image: string | null; // String
271269
name: string; // String!
@@ -457,8 +455,7 @@ export interface NexusGenFieldTypeNames {
457455
activePeriods: 'Int'
458456
conditions: 'JSON'
459457
description: 'String'
460-
descriptionBuyer: 'String'
461-
descriptionSeller: 'String'
458+
descriptionsByRole: 'JSONObject'
462459
id: 'ID'
463460
image: 'String'
464461
name: 'String'

apps/demo-game/src/graphql/generated/ops.ts

Lines changed: 6 additions & 8 deletions
Large diffs are not rendered by default.

apps/demo-game/src/graphql/generated/schema.graphql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ type Achievement {
66
activePeriods: [Int!]!
77
conditions: JSON
88
description: String!
9-
descriptionBuyer: String
10-
descriptionSeller: String
9+
descriptionsByRole: JSONObject
1110
id: ID!
1211
image: String
1312
name: String!

apps/demo-game/src/graphql/generated/schema.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,24 +69,12 @@
6969
"deprecationReason": null
7070
},
7171
{
72-
"name": "descriptionBuyer",
72+
"name": "descriptionsByRole",
7373
"description": null,
7474
"args": [],
7575
"type": {
7676
"kind": "SCALAR",
77-
"name": "String",
78-
"ofType": null
79-
},
80-
"isDeprecated": false,
81-
"deprecationReason": null
82-
},
83-
{
84-
"name": "descriptionSeller",
85-
"description": null,
86-
"args": [],
87-
"type": {
88-
"kind": "SCALAR",
89-
"name": "String",
77+
"name": "JSONObject",
9078
"ofType": null
9179
},
9280
"isDeprecated": false,

0 commit comments

Comments
 (0)