firebase / firebase/firebase-tools
[Dataconnect] : Try running a query in VS code cause a failure
- 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.
This is not true, because we are using it in the @check
### [REQUIRED] Expected behavior
No Error :-)
### [REQUIRED] Actual behavior
Contributor guide
Assessment
This issue has not been assessed yet.