Robin Métral
02/06/2020, 11:58 AMgaudi
02/06/2020, 7:19 PMTyler Bainbridge
02/06/2020, 11:46 PMlucid_frog
02/07/2020, 2:35 AMprisma deploy
?
type User {
id: ID! @id
name: String!
email: String!
package: ListingPackage!
}
enum ListingPackage {
2_WEEKS
4_WEEKS
6_WEEKS
6_MONTHS
UNLIMITED
}
can't find why! 😞Yann Suissa
02/07/2020, 3:01 PMLars-Jørgen Kristiansen
02/07/2020, 5:05 PMDillon Thompson
02/08/2020, 4:25 AMprisma deploy
but it’s returning this error: Error: Authentication token is invalid: Token can't be decoded: Invalid signature for this token or wrong algorithm
Dillon Thompson
02/08/2020, 4:26 AMDillon Thompson
02/08/2020, 4:26 AMlucid_frog
02/08/2020, 12:26 PMlucid_frog
02/08/2020, 1:51 PM<ModelName>Connection
inside your generated docs (<http://localhost:4466/>
)
Pagination done on a Listing
model
The key thing here is that we get the information needed (hasNextPage, hasPreviousPage
) to create an effective pagination system.
{
listingsConnection(
first:1
skip:0
){
edges{
node{
id
title
}
cursor
}
pageInfo{
hasNextPage
startCursor
hasPreviousPage
endCursor
}
aggregate{
count
}
}
}
result:
{
"data": {
"listingsConnection": {
"edges": [
{
"node": {
"id": "ck6dlze2500lg08478nmyysx3",
"title": "Senior Javascript developer",
"createdAt": "2020-02-08T13:02:39.333Z",
"owner": {
"id": "ck6dk6jdl009w08476yk3ogyf",
"name": "Alex",
"email": "<mailto:a@a.com|a@a.com>"
}
},
"cursor": "ck6dlze2500lg08478nmyysx3"
}
],
"pageInfo": {
"hasNextPage": false,
"startCursor": "ck6dlze2500lg08478nmyysx3",
"hasPreviousPage": false,
"endCursor": "ck6dlze2500lg08478nmyysx3"
},
"aggregate": {
"count": 1
}
}
}
}
lucid_frog
02/08/2020, 11:04 PMsecret
property inside the prisma.yml
file, my prisma client
doesn't seem to be working anymore. When I remove it from the prisma.yml
file everything works as expected.
Any idea? I thought the prisma client being generated from the prisma.yml file would pass the JWT bearer token by itself?
edit: when I do have the secret
property in place, the client just loads indefinitely, there are no "expired token" errors 🤔
Here's what's in my index.ts
file (generated from prisma deploy
export const Prisma = makePrismaClientClass<ClientConstructor<Prisma>>({
typeDefs,
models,
endpoint: `<http://localhost:4466>`,
secret: `7612368172shdbahjsbdkjIOUHAUID+_+A001S110D001110UY*&^%&TBGANSUDHASKJD001`
});
export const prisma = new Prisma();
knowbody
02/09/2020, 8:22 PMCarlos Valdez
02/09/2020, 10:41 PMMarcel
02/10/2020, 10:25 AMJonathan
02/11/2020, 7:00 AMAske
02/11/2020, 10:01 AMPratik
02/11/2020, 10:07 AMNaor W
02/11/2020, 3:35 PMJon
02/11/2020, 4:12 PMAmaan Sayed
02/11/2020, 6:31 PMSuniron
02/11/2020, 7:21 PMNelson Pecora
02/12/2020, 8:39 PMTask slick.basic.BasicBackend$DatabaseDef$$anon$2@244b3539 rejected from slick.util.AsyncExecutor$$anon$2$$anon$1@684d63fb[Running, pool size = 9, active threads = 9, queued tasks = 1000, completed tasks = 71289]
java.util.concurrent.RejectedExecutionException: Task slick.basic.BasicBackend$DatabaseDef$$anon$2@244b3539 rejected from slick.util.AsyncExecutor$$anon$2$$anon$1@684d63fb
{
"query": "query ($where: ContentWhereUniqueInput!) {\n content(where: $where) {\n legacyArticle {\n id\n }\n }\n}\n",
"variables": "{\"where\":{\"id\":\"ck5zd4yko000e3h5mlpov0qfq\"}}",
"code": "0",
...
}
Chad
02/13/2020, 4:54 AMNabeel
02/13/2020, 5:53 PMNabeel
02/13/2020, 5:54 PMJonathan
02/13/2020, 8:42 PMDexter Marks-Barber
02/14/2020, 1:16 AMAmaan Sayed
02/14/2020, 2:14 AMRuhan Khandakar
02/14/2020, 7:54 AM