Skip to content

Firebase Dataconnect VC Code extension problem #9419

@PiXe777

Description

@PiXe777

[REQUIRED] Environment info

Firebase Dataconnect VS Code extension + TypeScript
Image

firebase --version
14.17.0

firebase-tools: dataconnect emulator

Platform: macOS

[REQUIRED] Test case

I am having trouble with queries from VS Code when I add enum to the schema.

When I create a diagram based on documentation https://firebase.google.com/codelabs/firebase-dataconnect-web?hl=pl#3 everything works fine, I can read/edit data using the plugin.

Image Image

[REQUIRED] Steps to reproduce

As soon as I add the calculation, the plugin stops working.
For example, it will modify Movie based on documentation. https://firebase.google.com/docs/data-connect/schemas-guide?hl=pl

enum AspectRatio {
   ACADEMY
   WIDESCREEN
   ANAMORPHIC
   IMAX
   "No information available on aspect ratio"
   UNAVAILABLE
}

type Movie
  @table {
  title: String! 
  genre: String
  description: String
  originalAspectRatio: AspectRatio! @default(value: WIDESCREEN)
  otherAspectRatios: [AspectRatio!]
  tags: [String]
  rating: Float
  imageUrl: String!
  releaseYear: Int
}

[REQUIRED] Expected behavior

I can query with this extension to dataconnect

[REQUIRED] Actual behavior

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions