Omri Bitan
02/26/2020, 11:09 PMPrisma Admin
seems give me errors. It looks like it is trying to query some of the fields I've deleted..
I've tried:
prisma delete
prisma reset
any suggestions?
ThanksAlex Vilchis
02/27/2020, 12:41 AMlogin
and signup
operations public.
Does anyone have an example?Grant Plaster
02/27/2020, 2:09 AMUncaught (in promise) Error: {
"message": "Task slick.basic.BasicBackend$DatabaseDef$$anon$2@2850f5a4 rejected from slick.util.AsyncExecutor$$anon$2$$anon$1@cfc0ea7[Running, pool size = 1, active threads = 0, queued tasks = 1000, completed tasks = 497]",
"requestId": "us1:ck743cdcw2i8i0b90jtm8xuar"
}
doums
02/27/2020, 12:47 PMMoray Macdonald
02/27/2020, 1:35 PMdoums
02/27/2020, 1:52 PMFROM node:latest
WORKDIR /usr/src/app
COPY package*.json ./
COPY deploy/.env ./
COPY src src/
COPY prisma prisma/
COPY tsconfig.json ./
RUN npm i
RUN npm i -g prisma
RUN cd prisma && prisma deploy --env-file ../.env
RUN npm run build
EXPOSE 4001
ENV NODE_ENV production
CMD [ "node", "dist/index.js" ]
and this docker-compose file:
version: '3.7'
services:
api:
container_name: api
build:
context: ../
dockerfile: deploy/Dockerfile
restart: always
ports:
- 4001:4001
networks:
default:
external:
name: prisma_pwa-network
The prisma and the API containers are under the same network prisma_pwa-network. So the API container should be able to reach the prisma container through http://prisma_container_name:4466
The problem occurs when I run docker-compose up -d
to start my API's container on the step
prisma deploy
Step 9/13 : RUN cd prisma && npx prisma deploy --env-file ../.env
---> Running in e29f5c5c4fc1
npx: installed 593 in 22.789s
Authenticating...
Opening <https://app.prisma.io/cli-auth?secret=$2a$08$Rf.CuoX.mgUtFJp.5Gjr3O> in the browser
Could not open the authentication link, maybe this is an environment without a browser. Please open this url in your browser to authenticate: <https://app.prisma.io/cli-auth?secret=$2a$08$Rf.CuoX.mgUtFJp.5Gjr3O>
I fail to understand why Prisma is trying to authenticate ?
Have you an idea ?Moray Macdonald
02/27/2020, 3:33 PMAlan
02/27/2020, 3:40 PMqueueSize
property?Alan
02/27/2020, 3:40 PMKabilan
02/27/2020, 8:11 PMThe change you are trying to make would violate the required relation '_ABRelation' between B and A",
Is that expected behaviour? And if I wanted to do a cascading deletion while affecting many A's at a time, how would I get around this without making the relations not required.Smit Gandhi
02/27/2020, 8:30 PMjoeyfigaro
02/27/2020, 9:40 PMjoeyfigaro
02/27/2020, 9:42 PMjoeyfigaro
02/27/2020, 9:42 PMUser
joeyfigaro
02/27/2020, 9:42 PMCharles Gaudreau Jackson
02/28/2020, 12:08 AMcfree
02/28/2020, 2:16 AMadrianmg
02/28/2020, 5:39 AMMGH Developpers
02/28/2020, 8:02 AMdoums
02/28/2020, 10:42 AMprisma deploy
on a container build phase ? Has Anyone else had experienced this kind of problem before ?Asjas
02/28/2020, 12:35 PMdemo prisma
server in the EU region.johhansantana
02/28/2020, 6:52 PMBram
02/28/2020, 10:28 PMLars Ivar Igesund
02/29/2020, 8:40 AMemad darabeh
02/29/2020, 10:10 AMLars Ivar Igesund
02/29/2020, 10:28 AMYAROSLAV ZAIKA
02/29/2020, 12:29 PMconsole.log(db.$subscribe)
I get "undefined"
I don't understand. It's problem my project or it's global problem.
I am looking for a solution to this problem for 2 days.Brian Hopkins
02/29/2020, 2:38 PMshed
records that are a relation to the snake
record via graphql-yoga the records are null but from the prisma playground they are there correctly so that tells me I don't have something right in my resolver but not sure what I have wrong:
Broken response:
{
"data": {
"snakes": [
{
"id": "ck765gln5000n0859cig4sydm",
"name": "nacho",
"description": "Description of nacho ball python",
"createdAt": "2020-02-28T12:25:27.942Z",
"sheds": null,
"owner": {
"id": "ck765g9qg000h08594d0k419n",
"username": "test",
"firstName": "test",
"lastName": "user",
"email": "<mailto:test@test.com|test@test.com>"
}
}
]
}
}
Good Response From Prisma:
{
"data": {
"users": [
{
"id": "ck765g9qg000h08594d0k419n",
"username": "test",
"snakes": [
{
"id": "ck765gln5000n0859cig4sydm",
"name": "nacho",
"sheds": [
{
"shedDate": "2020-02-28T11:33:50.113Z",
"id": "ck765gvsd000v0859bq6nomca",
"complete": true
}
]
}
]
}
]
}
}
My resolver code for this branch is at https://github.com/serpent-tracker/api/blob/add_sheds/src/resolvers/Shed.js if anyone can tell me what I'm missing I thought this should work, it worked fine for my User relation to the snakes they ownedAakash Khatkar
03/01/2020, 8:44 AMTomislav Stampfel
03/01/2020, 9:06 AM