MCPcopy Create free account
hub / github.com/firebase/firebase-tools / readQueryFromDir

Function readQueryFromDir

src/commands/dataconnect-execute.ts:200–209  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

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(

Callers 1

Calls 3

readGQLFilesFunction · 0.90
squashGraphQLFunction · 0.90
writeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…