Dorkside
06/01/2018, 10:19 PMhttps://media.giphy.com/media/xmt9HwR9oQzTy/giphy.gif▾
Dorkside
06/01/2018, 10:20 PMv
06/01/2018, 11:09 PMv
06/01/2018, 11:09 PMErmolay
06/01/2018, 11:36 PMPkmmte
06/01/2018, 11:42 PMallUsers
-> users
or
updateUser(*stuff*)
-> updateUser(data: *stuff*)
marano
06/02/2018, 4:10 AMFATAL: too many connections for role
on my prisma server. Is there a way set the max number of connections prisma will use?Sam Abiassi
06/02/2018, 5:22 AMmarano
06/02/2018, 6:00 AMq666
06/02/2018, 9:22 AMextend type Query {
allItemsWithDistance(lat: Float, lng: Float): ItemPayload
}
will this work with subscription?pettanko
06/02/2018, 10:00 AMcodebeast
06/02/2018, 12:02 PMname
in the filter is not of the String type but of an enum type. Any idea how I can specify the enum value as the value of name
.
const userRole = await context.db.query.role({
where: {
name: 'USER'
}
}, `{ id }`)
FYI: This is the structure of the enum:
enum AvailableRoles {
USER
AUTHOR
EDITOR
ADMIN
}
jey.and.key
06/02/2018, 1:52 PMjey.and.key
06/02/2018, 1:52 PMjey.and.key
06/02/2018, 1:53 PMjey.and.key
06/02/2018, 1:53 PMterion
06/02/2018, 2:58 PMaddFragmentToInfo
but it doesn't seem to be working 😞
https://github.com/graphql-binding/graphql-binding/issues/116jey.and.key
06/02/2018, 3:47 PMterion
06/02/2018, 4:33 PMrequest
doesn't work 😞
https://github.com/prismagraphql/prisma-binding/issues/182
@nilan @nikolasburk please, take a look at this and 116 issue. It seems to just impossible to use fragments over prisma-binding
. A huge stopper 😞terion
06/02/2018, 5:04 PMmikedklein
06/02/2018, 6:03 PMv
06/02/2018, 9:10 PMpatrick
06/02/2018, 9:23 PMbruno
06/02/2018, 9:40 PMws
websocket server (not GraphQL subscriptions but rather a pure websocket server) in combination with graphql-yoga? Posted some details in #graphql-yogamikedklein
06/02/2018, 10:10 PMtype User {
id: ID! @unique
email: String! @unique
password: String!
name: String!
posts: [Post!]!
role: Role! @default(value: "EMPLOYEE")
active: Boolean! @default(value: "false")
token: ActivateToken
}
type ActivateToken {
id: ID! @unique
user: User!
token: String! @unique
}
but when I am in my yoga server const user = await ctx.db.query.user({ where: { id: args.userId } })
mikedklein
06/02/2018, 10:10 PMmikedklein
06/02/2018, 10:11 PMmikedklein
06/02/2018, 10:11 PMmikedklein
06/02/2018, 10:11 PMDukuo
06/02/2018, 11:48 PMserver.express.use('/voyager', voyagerMiddleware({ endpointUrl: '___GRAPHQLSERVER_OR_PRISMA_ENDPOINT___' }))
(note: use '/'
as the endpoint if you are targeting your server)
I'm a visual type of learner and this has helped to design my schemas in a much more intuitive way
Also, here's the repo https://github.com/APIs-guru/graphql-voyager