cfree
04/18/2019, 12:28 AMiago
04/18/2019, 3:13 AMxiaoqf10
04/18/2019, 3:51 AMJorge
04/18/2019, 6:19 AMtaikn
04/18/2019, 8:33 AMStorm
04/18/2019, 12:02 PMprisma deploy
, I get this error on a few types:
You are removing the field `updatedAt` while migrating to the new datamodel. Add the field `updatedAt: DateTime! @updatedAt` explicitly to your model to keep this functionality.
You are removing the field `createdAt` while migrating to the new datamodel. Add the field `createdAt: DateTime! @createdAt` explicitly to your model to keep this functionality.
What if I don’t want those fields on a particular type?rem
04/18/2019, 2:12 PMintrospect
command doesn't match what happens in the guide (and video) - I get this instead:
❯ prisma introspect
? What kind of database do you want to introspect? (Use arrow keys)
❯ MySQL MySQL compliant databases like MySQL or MariaDB
Mahmoud El Kotoury
04/18/2019, 2:17 PMMahmoud El Kotoury
04/18/2019, 2:17 PMMahmoud El Kotoury
04/18/2019, 2:17 PMciszekmarcell
04/18/2019, 4:11 PMJared
04/18/2019, 4:53 PMBooking
✖ Valid values for the strategy argument of `@scalarList` are: RELATION.
I beleive the field in question is:
guestsWithSpecialPricing: [String!]!
I can't find anything in the docs about scalar lists. Any ideas?jordy
04/18/2019, 5:08 PMJohn Aagaard
04/18/2019, 5:58 PMJohn Aagaard
04/18/2019, 5:58 PMJohn Aagaard
04/18/2019, 5:58 PMJohn Aagaard
04/18/2019, 5:59 PMlawjolla
04/18/2019, 6:09 PMCharlene
04/18/2019, 6:37 PMEnitan
04/18/2019, 8:51 PMEnitan
04/18/2019, 8:52 PMcedric
04/18/2019, 8:56 PMJameson Brown
04/18/2019, 11:52 PMyarn global add prisma@1.31
but its still at 1.32.0-betadnbkr
04/19/2019, 1:42 AMwuichen
04/19/2019, 9:47 AMquery {
user (where: {
email: "<mailto:chen1@gmail.com|chen1@gmail.com>"
}) {
id
workspaces {
id
}
}
}
{
"data": {
"user": {
"id": "cjunu2avf5lra0b30tqyc62mb",
"workspaces": [
{
"id": "cjunu33pa8h3a0b12zsmax1fw"
}
]
}
}
}
however when i try to get the same thing in rest api in my server code
const user = await this.prisma.user({
email: this.user.email
});
console.log(user);
i can only get partial data like this. i can’t figure out how to get workspaces array to be included
{ id: 'cjunu2avf5lra0b30tqyc62mb',
email: '<mailto:ichenwu01@gmail.com|ichenwu01@gmail.com>' }
Storm
04/19/2019, 12:22 PMSlackbot
04/19/2019, 12:28 PMmux
04/19/2019, 2:55 PMmux
04/19/2019, 2:55 PMlocations: [String!]! @scalarList(strategy: EMBEDDED)
mux
04/19/2019, 2:55 PMValid values for the strategy argument of '@scalarList' are: RELATION.Valid values for the strategy argument of '@scalarList' are: RELATION.