v1.5.0
Prisma Admin
Support list fields in our create and Update forms
you will add them in the input as a string with ,
between every value
Int[]
=>1,2,3,4
converted to[1,2,3,4]
Flout[]
=>1.2,2.3,3.5
converted to[1.2,2.3,3.5 ]
String[]
=>first,second
converted to['first','second']
enum[]
=>USER,ADMIN
converted to['USER','ADMIN']
Json[]
=>[{"first": 1},{"second": 2}]
we will pass value throughtJSON.parse()
PrismaSelect
added new arg to the prismaSelect class to add default fields object
if you want to add some fields to fetch event user not request in in graphql query
const defaultFields = {
User: { id: true, name: true },
Type: { id: true, descriptionRaw: true },
Post: { id: true, body: true },
}
const prismaSelect = new PrismaSelect(info, defaultFields);