OmriYaHoo
11/11/2019, 7:48 PM! The Migration failed and has not been performed. This is very likely not a transient issue.
! org.postgresql.util.PSQLException: ERROR: column "birth_date" of relation "members" already exists
Anyone has any clue why I'm getting this error?Calm_Fuel
11/11/2019, 8:11 PMSimon B
11/11/2019, 10:38 PMSimon B
11/11/2019, 10:38 PMCorey Snyder
11/12/2019, 4:17 AMEnum
field type is changed to String
with data already in the DB? Fingers crossed it leaves the values in place and converts them to string type?Etel
Morten Bo Rønsholdt
11/12/2019, 11:50 AM/Users/morten/Code/test-project/node_modules/nexus-prisma/dist/definitions/objectType.js:30
return nexus_1.core.nexusWrappedType(typeConfig.name, function (builder) {
^
TypeError: nexus_1.core.nexusWrappedType is not a function
at prismaObjectType (/Users/morten/Code/test-project/node_modules/nexus-prisma/dist/definitions/objectType.js:30:25)
at Object.<anonymous> (/Users/morten/Code/test-project/lib/schema/query.js:4:18)
at Module._compile (internal/modules/cjs/loader.js:945:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:962:10)
at Module.load (internal/modules/cjs/loader.js:798:32)
at Function.Module._load (internal/modules/cjs/loader.js:711:12)
at Module.require (internal/modules/cjs/loader.js:838:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/Users/morten/Code/test-project/lib/schema/index.js:8:9)
at Module._compile (internal/modules/cjs/loader.js:945:30)
using Prisma 1 together with
"nexus": "^0.12.0-beta.6",
"nexus-prisma": "^0.3.8"
this started happening after I deleted package-lock.json and reinstalled npm modules. anyone seen this? tried googling it without any luck. if I downgrade nexus
to v0.11.7
it works. maybe that's the best approach thenFelix Perroud
11/12/2019, 4:37 PMPuvipavan
11/13/2019, 9:11 AMRoy L
11/13/2019, 10:34 AMEhsan Sarshar
11/13/2019, 11:20 AMtafelito
11/13/2019, 7:48 PMtafelito
11/13/2019, 7:51 PMJames Mungai
11/13/2019, 7:57 PMtafelito
11/13/2019, 10:42 PMAndrew O.
11/14/2019, 1:28 AMjordy Tshibss
11/14/2019, 2:11 AMAndrey
11/14/2019, 6:47 AMchristian
11/14/2019, 6:15 PMAlexandru Serban
11/14/2019, 7:25 PMSteph Ricardo
11/14/2019, 8:07 PMQuery:
{
object(where: { id: "someIdStringHere" }) {
UUID
childObjects {
Attribute
}
}
}
Example of call with Prisma client:
In the API:
context.prisma.object({ id: "someIdStringHere" }).childObjects();
Result: []
Alexandru Serban
11/14/2019, 9:21 PMPrakhar
11/14/2019, 10:39 PMRaheel Riaz
11/15/2019, 5:30 AMnexus and nexus-Prisma and graphql-yoga
. I am struggling with this and haven't found any solution. Started with this article https://medium.com/@lastmjs/advanced-graphql-directive-permissions-with-prisma-fdee6f846044
but this doesn't seem to be working now.jordy Tshibangu
11/15/2019, 2:14 PMSasa Mocic
11/15/2019, 2:16 PMmario
11/15/2019, 2:39 PMBrad Slattman
11/15/2019, 2:46 PMBrad Slattman
11/15/2019, 2:46 PMCorey Snyder
11/15/2019, 3:51 PMcontext.prisma.droneBuild({id: buildId})
with all of it’s downstream parts in a single network request, rather than having to make 10 queries to retrieve that information.
const flightController = await context.prisma.droneBuild({id: buildId}).flightController().flightController()
const esc = await context.prisma.droneBuild({id: buildId}).esc().esc()
const vtx = await context.prisma.droneBuild({id: buildId}).vtx().vtx()
const receiver = await context.prisma.droneBuild({id: buildId}).receiver().receiver()
const camera = await context.prisma.droneBuild({id: buildId}).camera().camera()
const motor = await context.prisma.droneBuild({id: buildId}).motor().motor()
const propeller = await context.prisma.droneBuild({id: buildId}).propeller().propeller()
const frame = await context.prisma.droneBuild({id: buildId}).frame().frame()
const antenna = await context.prisma.droneBuild({id: buildId}).antenna().antenna()
const battery = await context.prisma.droneBuild({id: buildId}).battery().battery()