From dc4aa1d3c563aa2a02c56b3307c4f6e1a64e5643 Mon Sep 17 00:00:00 2001 From: Marco <51787428+MarcoMruz@users.noreply.github.com> Date: Thu, 14 Sep 2023 13:22:00 +0200 Subject: [PATCH] add pool properties to resource pool (#369) --- src/helpers/resource-manager.helpers.ts | 1 + src/schema/api.graphql | 1 + src/schema/nexus-typegen.ts | 3 +++ src/schema/pool.ts | 1 + 4 files changed, 6 insertions(+) diff --git a/src/helpers/resource-manager.helpers.ts b/src/helpers/resource-manager.helpers.ts index 5718be84..1b1bc680 100644 --- a/src/helpers/resource-manager.helpers.ts +++ b/src/helpers/resource-manager.helpers.ts @@ -17,6 +17,7 @@ export function apiPoolEdgeToGraphqlPoolEdge(apiPool: PoolFragmentFragment) { id: apiPool.id, name: apiPool.Name, }, + poolProperties: apiPool.PoolProperties, }; } diff --git a/src/schema/api.graphql b/src/schema/api.graphql index 3d2a2446..1eb5a815 100644 --- a/src/schema/api.graphql +++ b/src/schema/api.graphql @@ -863,6 +863,7 @@ input PollsOrderByInput { type Pool implements Node { id: ID! name: String! + poolProperties: Record! poolType: PoolType! resourceType: ResourceType! tags: [Tag!]! diff --git a/src/schema/nexus-typegen.ts b/src/schema/nexus-typegen.ts index 8707b909..3e293287 100644 --- a/src/schema/nexus-typegen.ts +++ b/src/schema/nexus-typegen.ts @@ -877,6 +877,7 @@ export interface NexusGenObjects { // root type id: string; // ID! name: string; // String! + poolProperties: NexusGenScalars['Record']; // Record! poolType: NexusGenEnums['PoolType']; // PoolType! resourceType: NexusGenRootTypes['ResourceType']; // ResourceType! tags: NexusGenRootTypes['Tag'][]; // [Tag!]! @@ -1572,6 +1573,7 @@ export interface NexusGenFieldTypes { // field return type id: string; // ID! name: string; // String! + poolProperties: NexusGenScalars['Record']; // Record! poolType: NexusGenEnums['PoolType']; // PoolType! resourceType: NexusGenRootTypes['ResourceType']; // ResourceType! tags: NexusGenRootTypes['Tag'][]; // [Tag!]! @@ -2357,6 +2359,7 @@ export interface NexusGenFieldTypeNames { // field return type name id: 'ID'; name: 'String'; + poolProperties: 'Record'; poolType: 'PoolType'; resourceType: 'ResourceType'; tags: 'Tag'; diff --git a/src/schema/pool.ts b/src/schema/pool.ts index c01b6fdd..d1a04029 100644 --- a/src/schema/pool.ts +++ b/src/schema/pool.ts @@ -50,6 +50,7 @@ export const Pool = objectType({ t.nonNull.field('poolType', { type: PoolType }); t.nonNull.list.nonNull.field('tags', { type: Tag }); t.nonNull.field('resourceType', { type: ResourceType }); + t.nonNull.record('poolProperties'); }, });