Skip to content

Data type JSON #186

@Errorname

Description

@Errorname

When converting the following datamodel:

type A {
  id: ID! @unique

  text: String!

  meta: JSON!
}

Using the following method:

cat datamodel.graphql | prisma2 convert > schema.prisma

I get the following schema:

model A {
  id   String @default(cuid()) @id @unique
  text String
}

As we can see, the meta: JSON attribute is missing

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions