Bradley
08/16/2019, 2:41 PMJose Garcia
08/16/2019, 2:49 PMprisma introspect
first to get a schema of the existing data. But when I run prisma deploy
I get this error column "category_id" of relation "subcategory" already exists
. I've tried prisma deploy --force
, prisma detelete
and the prisma deploy
, but nothing seems to get rid of this error. Any idea on how to get rid of it?Alexander
08/16/2019, 3:58 PMTim Chambers
08/16/2019, 4:19 PMPush to Prometheus Gateway failed with:
com.prisma.akkautil.http.FailedResponseCodeError: Server responded with 502
akka.stream.scaladsl.TcpIdleTimeoutException: TCP idle-timeout encountered on connection to [<http://metrics-eu1.prisma.io:443|metrics-eu1.prisma.io:443>], no bytes passed in the last 30 seconds
Can I disable these Prometheus pings until the endpoint is working again? Are there any other workarounds?Andrew O.
08/16/2019, 11:08 PMAndrew O.
08/16/2019, 11:08 PMKennah
08/17/2019, 2:34 PMCorey Snyder
08/18/2019, 2:59 AMendpoint: ${env:DB_API_URL, <https://us1.prisma.sh/my-id/my-app/dev>}
It’s not super clear how defaults should work EXACTLY. Your documentation shows: otherYamlKey: ${src:myVariable, defaultValue}
without the string in quotes or anything but it doesn’t work like that.
Also, I’d really like to use the .env
file referenced here: if the --dotenv argument was omitted, a file called .env in the same directory
but it’s not working. It’s unclear for the documentation:
1. “In the same directory”. Is that as the root where you’re running the command from, or as the prisma.yml file
2. Can you give an example of what this file should look like? Is it JSON, YML, other? I created a file with 1 line in it and it didn’t work.
DB_API_URL=<https://us1.prisma.sh/my-id/my-app/dev>
mikias abebe
08/18/2019, 9:16 AMmikias abebe
08/18/2019, 9:17 AMChris
08/18/2019, 4:35 PMset
field that causes the issue. My schema is really simple (see thread).Deepak Pathak
08/19/2019, 3:41 AMjsonwebtoken
npm package. It works fine for generation, but when in another mutation, I pass the token as an HTTP Header - Authorization key
as Bearer <<token>>, it fails in a call to jwt.verify().
Error I get is - JsonWebTokenError: invalid token at Object.module.exports [as verify]
Any ideas ?Ruslan Baigunussov
08/19/2019, 7:10 AMenum Gender {
MALE
FEMALE
}
type User {
id: Int! @id
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
firstName: String!
lastName: String!
gender: Gender!
birthday: DateTime!
email: String! @unique
password: String!
phone: String @unique
avatar: Picture
usersToClubs: [UserToClub!]
}
type Club {
id: Int! @id
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
name: String! @unique
description: String
location: Location
avatar: Picture
usersToClubs: [UserToClub!]
}
enum ClubRole {
MEMBER
MANAGER
}
type UserToClub @relationTable {
user: User!
club: Club!
role: ClubRole!
}
but get an error java.util.NoSuchElementException: None.get at scala.None$.get(Option.scala:349)
when prisma deploy
If change type UserToClub
to
type UserToClub {
id: Int! @id
user: User!
club: Club!
role: ClubRole!
}
everything is works, but I don't need id
field in this tableJames
08/19/2019, 11:13 AMNick
08/19/2019, 1:14 PMconversion over configuration
. Something that’s missing in node.js community. While that been said it has been months since any commits on the projectNelson Pecora
08/19/2019, 8:37 PMinput RelatedItemInput {
create: ContentCreateInput
connect: ContentWhereUniqueInput # auto-generated input type
delete: Boolean
}
input ContentCreateInput {
relatedItem: RelatedItemInput
}
in nexus-prisma? It doesn’t seem to want me to create input types that are in any way cyclicalOliver Evans
08/20/2019, 2:22 PMNotes: [String]
to my schema, and when I `prisma deploy`ed, I saw the message
+ Created field `Notes` of type `[String!]!`
This is the second time I noticed this specific issue, where a [String]
is incorrectly marked as a [String!]!
. The error is reflected in the schema in graphql-playground.
% yarn -s prisma --version
Prisma CLI version: prisma/1.33.0-beta (linux-x64) node-v11.15.0
Prisma server version: 1.33.0-beta
Ghassen Ghabarou
08/20/2019, 7:49 PMasync function feed(parent, args, context, info) {
const where = args.filter ? {
OR: [
{ description_contains: args.filter },
{ url_contains: args.filter },
],
} : {}
const links = await context.prisma.links({
where
})
return links
}
So I checked the generated prisma.schema.js and indeed it wasn't defined in LinkWhereInput
I don't know if this has happened to other people or if there's actually a problem with my setup.jasonmj
08/20/2019, 9:38 PMAndrew Malek
08/20/2019, 10:47 PMprisma deploy
on a private instanceHmm
08/20/2019, 11:30 PMideas
of `users`:
query users {
users {
id
ideas(orderBy: createdAt_DESC) {
id
}
}
}
It works without the orderBy
argument.
However with the orderBy
arg, I get this error: "Unknown argument \"orderBy\" on field \"ideas\" of type \"User\"."
My ideas
schema is here: https://github.com/hmmChase/next-graphql-starter/blob/master/backend/src/schema/schema.graphql#L29
My ideas
resolver is here: https://github.com/hmmChase/next-graphql-starter/blob/master/backend/src/resolvers/ideaResolver.js#L16
Btw, if I Query ideas
with the orderBy
directly:
query ideas {
ideas(orderBy: createdAt_DESC) {
id
}
}
It works.
I am just confused how to make the nested field sorting work.William Kwao
08/21/2019, 2:41 AMAndrew Malek
08/21/2019, 5:45 AMAndrew Malek
08/21/2019, 5:46 AMMartí Crespí
08/21/2019, 1:09 PMReason: 'system' Not valid
Andrew O.
08/21/2019, 8:38 PMCorey Snyder
08/22/2019, 1:15 AMEmailVerificaton
tied to them. I think this has to do with the relationship type that is set. Do you know how I can revise the model so that deletes on User
automatically delete associated `EmailVerification`s
type User {
id: ID! @id
name: String!
email: String! @unique
emailVerification: [EmailVerification] @relation(name: "UserEmailVerifications")
}
type EmailVerification{
id: ID! @id
verificationCode: String! @unique
user: User! @relation(name: "UserEmailVerifications")
}
Mark Stephenson
08/22/2019, 7:55 AMMuhaki
08/22/2019, 11:34 AMIsaac Weber
08/22/2019, 3:24 PMprisma generate
everytime I prisma deploy
?