H
03/28/2019, 7:08 PMH
03/28/2019, 7:11 PMsteveb
03/28/2019, 7:19 PM/playground
route for graphql-yoga? i want to password protect the playground with basic auth.YErii
03/29/2019, 2:56 AMFran Dios
03/29/2019, 4:00 AMgraphql-nexus
and its “code-first” philosophy? Have you tried graphql-modules
(“SDL-first”) as well?Mahalakshmi Ramanathan
03/29/2019, 5:01 AMrdc
03/29/2019, 6:59 AMbkstorm
03/29/2019, 9:09 AMconst iterator = await prisma.$subscribe
.reviewContent({
mutation_in: ['UPDATED'],
updatedFields_contains_some: ['status', 'isPaid'],
})
.node()
iterator.next().then(e => console.log(e))
Hi, I have a problem when using prisma client subscription. My code only works when I update for the first time, I want console.log
is executed whenever I update ReviewContent
types.Yehor Chernenko
03/29/2019, 9:43 AMElliott
03/29/2019, 10:42 AMtype Query {
links: [Link!]
}
type Mutation {
post(url: String!, description: String!): Link!
deleteLink(id: ID): Link
updateLink(id: ID, url: String!, description: String!): Link
createComment(description: String!, author: String!, linkId: ID): Comment!
}
type Link {
id: ID!
description: String!
url: String!
comments: [Comment!]!
}
type Comment {
id: ID!
description: String!
author: String!
linkId: Link
}
Elliott
03/29/2019, 10:42 AMnuno
03/29/2019, 11:21 AMimpowski
03/29/2019, 5:38 PMThom Meredith
03/29/2019, 5:41 PMimpowski
03/29/2019, 5:46 PMMessage
which will be send to a user, in that message I can ask a user to send me a different types of data, for example like age
, weight
, date
, etc. So how do I approach this, should I create a different type like MessageResponseType
which will have a unique name of type and a MessageResponse
which will contain a String
which is basically could be any data and I’ll have a field which will be a predefined MessageResponseType
, then on a client I’ll make a response to that message and send a data in that String
, check the MessageResponseType
on the server and make a processing function which will parse a needed type and save it to a different model.José Gomes
03/30/2019, 1:36 AMEcker
03/30/2019, 6:47 AMunique
? Avoiding duplicate entries in the relation array. For example enforce that members can only be hooked up to the same team one time, not multiple times? – Or does it already work like that? 🤔Industrial
03/30/2019, 1:19 PMIndustrial
03/30/2019, 1:19 PMcreateChart
(https://github.com/Industrial/test-next.js/blob/develop/services/api/src/server/resolvers/Mutation/createChart.js) and deleteChart
(https://github.com/Industrial/test-next.js/blob/develop/services/api/src/server/resolvers/Mutation/deleteChart.js).
When I call createChart
from my app, this is the output: https://gist.github.com/Industrial/8b839cbba7a872f1e9dbd0a95a013a3b
For deleteChart
the output is:
[33mapi_1 |[0m deleteChart options { data: { where: { id: 'cjtslwjqb000m0b78y3b48mfh' } } }
[33mapi_1 |[0m deleteChart result undefined
Seems there isn't even a request going out to the Prisma server from the Yoga server. Why? The implementation is identical to createChart.Myer Nore
03/30/2019, 4:55 PMimpowski
03/30/2019, 5:41 PMprisma/1.30.0-beta.6
release I guess something is wrong hereOlivier M
03/30/2019, 10:12 PMJoseph
03/31/2019, 1:05 AMH
03/31/2019, 5:27 AMH
03/31/2019, 5:27 AMH
03/31/2019, 5:28 AMH
03/31/2019, 5:28 AMJames
03/31/2019, 9:06 AMJames
03/31/2019, 10:09 AMimpowski
03/31/2019, 4:47 PMgraphqlgen
and to return the right type inside __resolveType
?