#Query createOnevisitor_information is required to return data, but found no record(s).

3 messages · Page 1 of 1 (latest)

iron dock
#

Hey folks,
Ive got an issue with creating data in my database.

Code looks like the followin:

await db.visitor_information.create({
  data: {
    ip: singleIp,
    datetime: new Date()
  }
});

And I get the following error: Query createOnevisitor_information is required to return data, but found no record(s).

I've made sure the singleIp is NOT null.

visitor_information structure is in the image.

iron dock
#

Is this a bug with Prisma?

vestal finch