Skip to content

Data Connect emulator crashes when using uuidV4() #9852

@ciriousjoker

Description

@ciriousjoker

Environment info

firebase-tools: 14.27.0

Platform: macOS

Test case

type SomeTable @table(name: "test", key: ["id"]) {
  id: UUID! @default(expr: "uuidV4()")
  data: String!
}

mutation InsertExerciseRecord(
  $data: String!
) @auth(level: NO_ACCESS) {
  someTable_insert(
    data: {
      data: $data
    }
  )
}

Steps to reproduce

Generate this schema and try to insert data. It fails and the emulator crashes.

Expected behavior

Should autogenerate the id field.

Actual behavior

Emulator crashes.

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