firebase / firebase/firebase-tools

[Dataconnect] : Try running a query in VS code cause a failure

Open
#9,355 1 comment 0 reactions 1 assignee Claimed by @hlshen View on GitHub
type: bug VSCode Extension
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### [REQUIRED] Environment info
VS Code version of the plugin is 1.8.0...but the error is also on the 1.9.0

**firebase-tools:** 14.20.0

**Platform:** macOS

### [REQUIRED] Test case

Create a Query with a check on variable input like this:
query GetInvitation($email: String!, $invitationId: UUID!) @auth(level: PUBLIC, insecureReason: "Need to check prior being loggedIn"){
invitation(key: {
id: $invitationId
}){
id,
email @check(expr: "this == email", message: "[502] : Invitation does not match")
}
}

### [REQUIRED] Steps to reproduce

Tr to execute the query using the Data connect execution and you will get an error.

Image

This is not true, because we are using it in the @check

### [REQUIRED] Expected behavior
No Error :-)

### [REQUIRED] Actual behavior
Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.