Andy
01/09/2019, 4:25 AMPSQLException: ERROR: relation "public.Model" does not exist
. my existing table is named models
Andy
01/09/2019, 4:52 AMludovic
01/09/2019, 9:38 AMFran Dios
01/09/2019, 10:46 AM[Network error]: FetchError: request to <prisma service url> failed, reason: write EPROTO 140357791845256:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1407:SSL alert number 40
Both backend and prisma service run in Now v1. It’s probably not related to Prisma itself but maybe somebody had the same issuenus
01/09/2019, 11:25 AMSagar Tambe
01/09/2019, 11:38 AMSagar Tambe
01/09/2019, 3:37 PMSagar Tambe
01/09/2019, 3:38 PMMo
01/09/2019, 5:47 PMAndy
01/09/2019, 7:23 PMAnthony
01/09/2019, 7:55 PMAnthony
01/09/2019, 7:58 PMAnthony
01/09/2019, 8:07 PMAndy
01/09/2019, 8:23 PMAnthony
01/09/2019, 8:44 PMwarchantua
01/09/2019, 9:34 PMprisma generate
and graphql get-schema --project database
?
It looks like for the same SDL prisma schema they generate different prisma.graphql
files. First generated 3700 LOC when second generated 6500 LOC. Second has comments thoughwarchantua
01/09/2019, 10:43 PMprisma generate
support interfaces?
interface Sortable {
sort: Int! @default(value: 0)
}
type Something implements Sortable {
something: String
}
it says
$ prisma generate
Generating schema !
▸ Syntax Error: Unexpected Name "Sortable"
Jeongy
01/10/2019, 12:22 AMError: spawn cmd.exe ENOENT
?? I'm trying to login through a command, prisma login. but it gives me this error.Andy
01/10/2019, 5:22 AMgenerated/
folder or git ignore it?Andy
01/10/2019, 5:22 AMAndy
01/10/2019, 5:34 AM# import Mutation.updateUser from './generated/prisma.graphql'
but when I run updateUser
from my apollo server playground, it just returns and doesn't seem to do anythingNaka
01/10/2019, 1:03 PMMark Fulton
01/10/2019, 2:49 PMstevepsharpe
01/10/2019, 2:58 PMhttps://up.shar.pe/1547132266.png▾
Karl
01/10/2019, 7:29 PMwarchantua
01/10/2019, 8:22 PMjamiehalvorson
01/10/2019, 9:36 PMconst recommended: Class[] = await prisma
.classes({
// checks
})
.$fragment(`
fragment Example on Class {
id
heroImage { // This is the relation
public_id
}
}
`);
However, when I then loop through recommended
and try to access heroImage
I get Property 'heroImage' does not exist on type 'Class'
.
When I try to access a single class
it works fine, e.g:
const example = await prisma.class({ id: "123" }).heroImage();
const exampleHeroID = example.public_id
Any help or pointers to the right docs would be greatly appreciatedAndy
01/11/2019, 5:09 AMaggregate.count
query isn't returning the total number of entries, it's only returning the total number for that page. How do I get the total number to show all pages?anthony
01/11/2019, 6:00 AMschema.graphql
?hinsxd
01/11/2019, 7:46 AMme
query that returns a User
object with a posts
field that return all the posts from a user. I also have a top-level posts
query for general posts queries. It is pretty easy to implement pagination with the top-level queries, but seems a lot more troublesome with the sub-field query.
So, if you were me, would you
1) Write a new top-level query myposts
. This may lead to more duplicated codes. In the backend. Also in the frontend, one more refetchQueries
has to be done after each mutation.
2) Implement pagination with incremental fetching inside object in the frontend. This would bring complicated arguments into backend’s subfield. Also more complicated logics in frontend.
3) Fetch all myposts
at once and do client-side pagination only.