Skip to content

Commit

Permalink
add pool properties to resource pool (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoMruz authored Sep 14, 2023
1 parent b05f45d commit dc4aa1d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/helpers/resource-manager.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function apiPoolEdgeToGraphqlPoolEdge(apiPool: PoolFragmentFragment) {
id: apiPool.id,
name: apiPool.Name,
},
poolProperties: apiPool.PoolProperties,
};
}

Expand Down
1 change: 1 addition & 0 deletions src/schema/api.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,7 @@ input PollsOrderByInput {
type Pool implements Node {
id: ID!
name: String!
poolProperties: Record!
poolType: PoolType!
resourceType: ResourceType!
tags: [Tag!]!
Expand Down
3 changes: 3 additions & 0 deletions src/schema/nexus-typegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!]!
Expand Down Expand Up @@ -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!]!
Expand Down Expand Up @@ -2357,6 +2359,7 @@ export interface NexusGenFieldTypeNames {
// field return type name
id: 'ID';
name: 'String';
poolProperties: 'Record';
poolType: 'PoolType';
resourceType: 'ResourceType';
tags: 'Tag';
Expand Down
1 change: 1 addition & 0 deletions src/schema/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
},
});

Expand Down

0 comments on commit dc4aa1d

Please sign in to comment.