(dir: string)
| 198 | return body; |
| 199 | |
| 200 | async function readQueryFromDir(dir: string): Promise<string> { |
| 201 | const opDisplay = operationName ? clc.bold(operationName) : "operation"; |
| 202 | process.stderr.write(`${clc.cyan(`Executing ${opDisplay} in ${clc.bold(dir)}`)}${EOL}`); |
| 203 | const files = await readGQLFiles(dir); |
| 204 | const query = squashGraphQL({ files }); |
| 205 | if (!query) { |
| 206 | throw new FirebaseError(`${dir} contains no GQL files or only empty ones`); |
| 207 | } |
| 208 | return query; |
| 209 | } |
| 210 | |
| 211 | async function getServiceInfo(): Promise<ServiceInfo> { |
| 212 | return pickOneService( |
no test coverage detected
searching dependent graphs…