Skip to content

Commit a339a81

Browse files
committed
Merge remote-tracking branch 'origin/master' into fz/vscode-edit-vars
2 parents 7837c69 + 902570b commit a339a81

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

CHANGELOG.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
- Add a confirmation in `firebase init dataconnect` before asking for app idea description. (#9282)
2-
- Add a command `firebase dataconnect:execute` to run queries and mutations (#9274).
3-
- Updated to v2.15.0 of the Data Connect emulator, which changes Dart SDKs to have generated objects use Object.hashAll()

npm-shrinkwrap.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firebase-tools",
3-
"version": "14.19.1",
3+
"version": "14.20.0",
44
"description": "Command-Line Interface for Firebase",
55
"main": "./lib/index.js",
66
"bin": {

src/commands/dataconnect-execute.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ export const command = new Command("dataconnect:execute [file] [operationName]")
115115
serviceName = (await getServiceInfo()).serviceName;
116116
}
117117
}
118-
if (!options.vars && !process.stdin.isTTY && !stdinUsedFor) {
119-
options.vars = "@-";
118+
if (!options.variables && !process.stdin.isTTY && !stdinUsedFor) {
119+
options.variables = "@-";
120120
}
121-
const unparsedVars = await literalOrFile(options.vars, "--vars");
121+
const unparsedVars = await literalOrFile(options.variables, "--variables");
122122
const response = await executeGraphQL(apiClient, serviceName, {
123123
query,
124124
operationName,
125-
variables: parseJsonObject(unparsedVars, "--vars"),
125+
variables: parseJsonObject(unparsedVars, "--variables"),
126126
});
127127

128128
// If the status code isn't OK or the top-level `error` field is set, this

0 commit comments

Comments
 (0)