Skip to content

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

@wer-mathurin

Description

@wer-mathurin

[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

Metadata

Metadata

Assignees

Labels

VSCode Extensionhttps://marketplace.visualstudio.com/items?itemName=GoogleCloudTools.firebase-dataconnect-vscodetype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions