maoosi/prisma-appsync

(MongoDB) The ID field is required in the schema when it should be generated by the database

mikerudge opened this issue · 1 comments

When adding a model, the ID field should not be required in the create type. For example, this user model

model User {
    id            String    @id @default(auto()) @map("_id") @db.ObjectId
    name          String?
}

produces

input UserCreateInput {
    id: String! <-- ID should not be required here
    name: String
}
maoosi commented

Related to #96. Fix is ready and will be released as part of 1.0.0-rc.6.