Open tmc opened 2 years ago
I believe entimport does not currently match the field.UUID API which accepts a second argument.
entimport
I just got a field generated as: field.UUID("fooer_id").Optional(uuid.UUID{})
field.UUID("fooer_id").Optional(uuid.UUID{})
where I believe the appropriate syntax is field.UUID("fooer_id", uuid.UUID{}).Optional()
field.UUID("fooer_id", uuid.UUID{}).Optional()
Hi @tmc,
It is in the roadmap, not supported yet, this is a feature that is handled by schemast in ent contrib repo.
schemast
I believe
entimport
does not currently match the field.UUID API which accepts a second argument.I just got a field generated as:
field.UUID("fooer_id").Optional(uuid.UUID{})
where I believe the appropriate syntax is
field.UUID("fooer_id", uuid.UUID{}).Optional()