Industrial
12/04/2018, 9:17 AMIvan Petrushev
12/04/2018, 1:17 PMtype City @model {
id: ID! @isUnique
Error: The field id is reserved and has to have the format: id: ID! @unique or id: UUID! @unique.
Tamir
12/04/2018, 3:06 PMTamir
12/04/2018, 3:06 PMfgreinus
12/04/2018, 3:08 PMTanvir
12/04/2018, 4:47 PMJoshDev
12/04/2018, 6:09 PMJoshDev
12/04/2018, 6:12 PMlawjolla
12/04/2018, 6:15 PMrwatts3
12/04/2018, 6:38 PMdatabases:
key I initially had mysql, in the default object, then added another object to databases called mongodb and added a mongodb endpoint, is that intended to be an array of databases or is the plural not intentional ?rwatts3
12/04/2018, 6:38 PMViable
12/05/2018, 1:59 AM"Variable '$data' cannot be non input type 'XxxxCreateInput!'.
error - solution was to prisma deploy
- but I'm wondering if we could see a better error like from postgresql saying "no such table.."Industrial
12/05/2018, 8:34 AMIndustrial
12/05/2018, 8:35 AMexport async function createOHLCVs(market, period, ohlcvs) {
// console.log('createOHLCVs', market, period, ohlcvs.length)
const apolloClient = getApolloClient()
await Promise.all(
ohlcvs.map((oHLCV) => {
const [timestamp, open, high, low, close, volume] = oHLCV
const variables = {
close,
high,
low,
marketBase: market.base,
marketQuote: market.quote,
open,
period,
timestamp: new Date(timestamp).toISOString(),
volume,
}
return apolloClient.mutate({
mutation: createOHLCV,
variables,
})
}),
)
}
This code makes me cry 😞leafyshark
12/05/2018, 9:30 AMArnab
12/05/2018, 10:00 AMIndustrial
12/05/2018, 10:29 AMjoar
12/05/2018, 1:28 PMconst author = await context.prisma
.post({
id,
})
.author()
Does it first query the post, and then the author? Or does it batch them and join?ervindraganovic
12/05/2018, 2:09 PMlanguages
is a scalar field and cannot specify the @relation
directive.leafyshark
12/05/2018, 2:14 PMleafyshark
12/05/2018, 2:15 PMMaik
12/05/2018, 2:17 PMjoar
12/05/2018, 2:53 PMViable
12/05/2018, 4:09 PMViable
12/05/2018, 4:09 PMleafyshark
12/05/2018, 4:11 PMleafyshark
12/05/2018, 4:11 PMleafyshark
12/05/2018, 4:11 PMViable
12/05/2018, 4:12 PMleafyshark
12/05/2018, 4:12 PM