Ionut Achim
03/09/2019, 10:53 PMconst newUserWithLinks = await prisma
.createUser({
name: "Alice",
email: "<mailto:alice@prisma.io|alice@prisma.io>",
password: "IlikeTurtles",
links: {
create: [{
description: "My first link",
url: "<https://www.prisma.io>"
}, {
description: "My second link",
url: "<https://www.howtographql.com>"
}]
},
})
After checking the created documents, with the mongo shell, I can see the user document has a links
property which is an array containing the two newly created link IDs. All good, but when I check the links
documents I don't see any postedBy
property nor any other property that points back to the user.
My question is - how does Prisma resolve the postedBy
field?johhansantana
03/09/2019, 11:38 PMcreate a hosted server
or add a server
but doesn’t explain the prices of these.Jorge
03/10/2019, 6:17 AMjblevins
03/10/2019, 6:43 AMBenjamin Sampson
03/10/2019, 9:16 AMBenjamin Sampson
03/10/2019, 9:17 AMctx.response.cookie
is creating a cookie accessible as ctx.request.cookies
Benjamin Sampson
03/10/2019, 9:28 AMcookie-parser
packageBenjamin Sampson
03/10/2019, 9:28 AMRodrigo Vieira
03/10/2019, 9:36 AMprisma_1 | Exception in thread "main" org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "187.104.214.232", user "dcqbwauyzfxexj", database "d8ep2m9i0v9ar2", SSL off
Things to note: 187.104.214.232 is my IP address. I am trying to use Prisma locally by connecting to an external PostgreSQL db (heroku addon), but I'm getting this error. Tried everything and searched everywhere.Bedrock02
03/10/2019, 1:29 PMconsejo
and prisma generated a created a consejoes
query. Is there any way that I could change this so that the query is consejos
instead of consejoes
Wendell Misiedjan
03/10/2019, 7:21 PMMichael Code Nielsen
03/10/2019, 9:50 PMahebwa49
03/11/2019, 9:44 AMahebwa49
03/11/2019, 9:45 AMJayphen
03/11/2019, 10:06 AMdomko
03/11/2019, 10:30 AMrem
03/11/2019, 12:55 PMgwil
03/11/2019, 4:34 PMJosé Gomes
03/11/2019, 4:48 PMHenry
03/11/2019, 7:13 PMexport const contacts = extendType({
type: 'Query',
definition(t) {
t.list.field('contacts', {
type: 'Contact',
resolve: (parent, args, ctx) => { ... },
})
},
})
That I wish to shorten tosomething like the following:
export const contacts = queryField('contacts', {
type: 'Contact', // list?
resolve: (parent, args, ctx) => { ... },
})
José Gomes
03/11/2019, 10:13 PMJosé Gomes
03/11/2019, 10:13 PMimpowski
03/12/2019, 12:42 AM%s
or ${name}
and I need to change those variables to the actual values. Which library or method do you recommend? Currently I found two things, first is util.format
and the second one is sprintf-js
.jblevins
03/12/2019, 2:49 AMLuke
03/12/2019, 3:15 AMLuke
03/12/2019, 3:16 AMReid Mewborne
03/12/2019, 3:19 AMJidé
03/12/2019, 9:19 AMJosé Gomes
03/12/2019, 9:34 AMdivyendu
03/12/2019, 9:39 AM