Skip to content

Commit

Permalink
version field added to device (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
soson authored Mar 14, 2024
1 parent 7498362 commit fb488a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/schema/api.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ type Device implements Node {
source: DeviceSource!
updatedAt: String!
vendor: String
version: String
zone: Zone!
}

Expand Down
1 change: 1 addition & 0 deletions src/schema/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const Device = objectType({
});
t.string('model');
t.string('vendor');
t.string('version');
t.int('port');
t.string('address', {
resolve: async (root) => root.managementIp,
Expand Down
2 changes: 2 additions & 0 deletions src/schema/nexus-typegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ export interface NexusGenFieldTypes {
source: NexusGenEnums['DeviceSource']; // DeviceSource!
updatedAt: string; // String!
vendor: string | null; // String
version: string | null; // String
zone: NexusGenRootTypes['Zone']; // Zone!
};
DeviceConnection: {
Expand Down Expand Up @@ -1363,6 +1364,7 @@ export interface NexusGenFieldTypeNames {
source: 'DeviceSource';
updatedAt: 'String';
vendor: 'String';
version: 'String';
zone: 'Zone';
};
DeviceConnection: {
Expand Down

0 comments on commit fb488a9

Please sign in to comment.