Zarazas
02/23/2019, 9:12 PMZarazas
02/23/2019, 9:13 PMjasonmj
02/24/2019, 12:07 AMorg.postgresql.util.PSQLException: ERROR: schema "prisma" does not exist
I'm getting this error even after removing and rebuilding the prisma and postgres docker containers. Not sure what to do next. I'm working off the prisma-examples > typescript > graphql-auth example.rooneyK
02/24/2019, 9:09 AMfirst
value to 100 for all array-type queries. I've successfully added this to the schema, and I can see that first
is defaulted to 100 in all queries. However, it doesn't apply correctly to nested queries. Is this a bug, or am I doing something wrong here?
type Query {
cats(first: Int = 2, last: Int): [Cat]!
}
type Cat implements,Node {
name: String!
slaves(first: Int = 2, last: Int): [Person!]
}
query {
cats{name slaves{name}}
}
# results has the first 2 cats and all their slaves, while they should only have the first 2 slaves, a total of 4 here.
go4cas
02/24/2019, 9:19 AMjoan
02/24/2019, 10:12 AMJenkins
02/25/2019, 7:13 AMset
.
Make it look like:
mutation {
createPlace(data: {
title: "Haha"
description: "Hoho"
location: {
create: {
type: "Point"
coordinates: {
set: [4.2, 1.5]
}
}
}
}) {
id
}
}
You can always inspect what the prisma resolvers expect by looking at the docs in the playground, btw.rein
02/24/2019, 12:04 PMstereu
02/24/2019, 7:39 PMJoellao
02/24/2019, 10:19 PMsignup(emailOrUsername: CustomType!, password: String!)
and customType{data: String!}
and then check in the backend if I should insert as email or username, but do you guys use another method, seems like hacky to meChiwanAhn
02/25/2019, 6:49 AMapollo-client
prisma
react-native
I want to import graphql query from generated js file with prisma.
How can I import queries and mutations directly from generated files?lawjolla
02/25/2019, 7:03 AMMartí Crespí
02/25/2019, 9:14 AMprisma introspect
. Someone has experienced the same?Andrei Bacescu
02/25/2019, 10:38 AMapollo-errors
library is a good way to handle errors in a GraphQL API. What do you recommend for formatting error on the server side? Thanks in advance.Stefan
02/25/2019, 11:13 AMlewisedc
02/25/2019, 11:44 AM@relation(name: "OldRelation")
Lotafak
02/25/2019, 12:22 PMjavascript-client
and previously was using graphql-binding
.
So, previously I was using this to grab data with all the relationships underneath
await ctx.db.query.accounts({
where: { user: { id }, role },
orderBy: 'createdAt_ASC',
last: 1,
}, `{
contact { phone, phone2, skype, address }
}`)
datamodel
type User {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
accounts: [Account!]! @relation(name: "UsersAccount")
}
type Account {
id: ID! @unique
createdAt: DateTime!
user: User! @relation(name: "UsersAccount")
role: Role!
contact: Contact @relation(name: "AccountsContact")
}
type Contact {
id: ID! @unique
updatedAt: DateTime!
account: Account! @relation(name: "AccountsContact")
phone: String!
phone2: String
skype: String
address: String!
}
now, going from ctx.db.query.accounts
to ctx.db.accounts
results in empty relations data.
How should I call it so it returns the relations data properly for me?Slackbot
02/25/2019, 2:00 PMJulián Álvarez
02/25/2019, 2:55 PMsandorTuranszky
02/25/2019, 3:38 PMexpireAfterSeconds
for MongoDb? I'd like to set an expiration time for value. Thank you.iago
02/25/2019, 6:24 PMtype Client {
invitees: [ClientInvitee!]!
(...)
}
type ClientInvitee @embedded {
email: String!
permissions: ClientInviteeUserClientPermissions!
}
type ClientInviteeUserClientPermissions @embedded {
company: Boolean! @default(value: false)
soundtracks: Boolean! @default(value: false)
fence: Zone @relation(link: INLINE)
}
I find a bit strange there's no permissions to update:
type ClientInviteeUpdateManyDataInput {
email: String
}
Plans for this to change? Soon?dan
02/25/2019, 7:14 PMnpm install -g prisma && prisma deploy && prisma seed && npm start
at the end of the Dockerfile, Im looking for advice when it comes to running prisma deploy and generate on the server. The issue I am having is that multiple replicas of this docker image will start by running prisma deploy at the same time, causing errors on all the images that spin up after the first. I was wondering if anyone else is deploying their prisma changes as part of the automated deployment process and if they are solving for this somehow.Aditya Gupta
02/25/2019, 7:37 PMdan
02/25/2019, 7:39 PMAditya Gupta
02/25/2019, 7:47 PMAditya Gupta
02/25/2019, 7:49 PMJulián Álvarez
02/25/2019, 8:09 PMarsan.irianto
02/26/2019, 2:50 AMdeepak
02/26/2019, 7:40 AMJidé
02/26/2019, 7:43 AM