Skip to content

Commit a33d976

Browse files
committed
Simplify query to stave off rate limit
1 parent 08c8de2 commit a33d976

File tree

2 files changed

+1
-63
lines changed

2 files changed

+1
-63
lines changed

packages/app/src/cli/api/graphql/app-management/generated/apps.ts

Lines changed: 1 addition & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-disable @typescript-eslint/consistent-type-definitions */
22
import * as Types from './types.js'
3-
import {JsonMapType} from '@shopify/cli-kit/node/toml'
43

54
import {TypedDocumentNode as DocumentNode} from '@graphql-typed-document-node/core'
65

@@ -10,25 +9,7 @@ export type ListAppsQueryVariables = Types.Exact<{
109

1110
export type ListAppsQuery = {
1211
appsConnection?: {
13-
edges: {
14-
node: {
15-
id: string
16-
key: string
17-
activeRelease: {
18-
id: string
19-
version: {
20-
name: string
21-
appModules: {
22-
uuid: string
23-
userIdentifier: string
24-
handle: string
25-
config: JsonMapType
26-
specification: {identifier: string; externalIdentifier: string; name: string}
27-
}[]
28-
}
29-
}
30-
}
31-
}[]
12+
edges: {node: {id: string; key: string; activeRelease: {id: string; version: {name: string}}}}[]
3213
pageInfo: {hasNextPage: boolean}
3314
} | null
3415
}
@@ -92,20 +73,6 @@ export const ListApps = {
9273
kind: 'SelectionSet',
9374
selections: [
9475
{kind: 'Field', name: {kind: 'Name', value: 'name'}},
95-
{
96-
kind: 'Field',
97-
name: {kind: 'Name', value: 'appModules'},
98-
selectionSet: {
99-
kind: 'SelectionSet',
100-
selections: [
101-
{
102-
kind: 'FragmentSpread',
103-
name: {kind: 'Name', value: 'ReleasedAppModule'},
104-
},
105-
{kind: 'Field', name: {kind: 'Name', value: '__typename'}},
106-
],
107-
},
108-
},
10976
{kind: 'Field', name: {kind: 'Name', value: '__typename'}},
11077
],
11178
},
@@ -140,31 +107,5 @@ export const ListApps = {
140107
],
141108
},
142109
},
143-
{
144-
kind: 'FragmentDefinition',
145-
name: {kind: 'Name', value: 'ReleasedAppModule'},
146-
typeCondition: {kind: 'NamedType', name: {kind: 'Name', value: 'AppModule'}},
147-
selectionSet: {
148-
kind: 'SelectionSet',
149-
selections: [
150-
{kind: 'Field', name: {kind: 'Name', value: 'uuid'}},
151-
{kind: 'Field', name: {kind: 'Name', value: 'userIdentifier'}},
152-
{kind: 'Field', name: {kind: 'Name', value: 'handle'}},
153-
{kind: 'Field', name: {kind: 'Name', value: 'config'}},
154-
{
155-
kind: 'Field',
156-
name: {kind: 'Name', value: 'specification'},
157-
selectionSet: {
158-
kind: 'SelectionSet',
159-
selections: [
160-
{kind: 'Field', name: {kind: 'Name', value: 'identifier'}},
161-
{kind: 'Field', name: {kind: 'Name', value: 'externalIdentifier'}},
162-
{kind: 'Field', name: {kind: 'Name', value: 'name'}},
163-
],
164-
},
165-
},
166-
],
167-
},
168-
},
169110
],
170111
} as unknown as DocumentNode<ListAppsQuery, ListAppsQueryVariables>

packages/app/src/cli/api/graphql/app-management/queries/apps.graphql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ query listApps($query: String) {
88
id
99
version {
1010
name
11-
appModules {
12-
...ReleasedAppModule
13-
}
1411
}
1512
}
1613
}

0 commit comments

Comments
 (0)