ivor
09/20/2018, 7:23 PMfaure
09/20/2018, 8:35 PMChris H
09/20/2018, 8:41 PMyarn dev
run command? I would like to usually run the graphql server against the prisma on my local docker but occasionally run the graphql server against a staging environment on my production prisma host.zonofthor
09/20/2018, 10:01 PMmutation {
updateUser(
where: { id: "o5FGT6i1xyGEMRXShMPU71ZGd" }
data: {
editorForStations: { *CLEAR ALL CONNECTED NODES* }
}
) {
id
}
}
xiaoqf10
09/21/2018, 4:20 AMxiaoqf10
09/21/2018, 4:20 AMxiaoqf10
09/21/2018, 5:11 AMNick
09/21/2018, 7:30 AMgraphql
That you should be able to output the schema as JSON file
Anyone out there that have done something like this with prisma please share this workflow.
Is there such thing as graphql-linting?luhagel
09/21/2018, 9:06 AMprisma export
produces invalid data when it comes to custom json fields.
prisma import --data export-2018-09-21T09:00:40.144Z.zip
Unzipping 31ms
Uncaught exception, cleaning up: Error: Value "{\"prop\":\"whatever\",\"label\":\"Label\"}" for field personalDownloads is not a valid Json
Validating data ✖
Sh4reef
09/21/2018, 12:17 PMtype
from another graphql file using Prisma Client doesn’t work, But it does work with Prisma Binding ?Nick
09/21/2018, 1:00 PMschemaPath: src/schema.graphql
how do I output schema.json
from the schema.graphql
How do I turn schema.graphql into schema.json?woss
09/21/2018, 1:09 PMHere it comes " / ' \s /t
without breaking the server. my guess is that i am doing something wrong with the mutation template. which looks like this:
return client.mutate({
mutation: gql`
mutation {
updateMyself(
data: {
name: "${name}",
givenName: "${givenName}",
familyName: "${familyName}",
username: "${username}",
email: "${email}",
description: "${description}", `Here it comes " / ' \s /t`
}
) {
name
givenName
familyName
}
}
`,
})
Seva
09/21/2018, 1:34 PMed
09/21/2018, 2:49 PM<https://graph.cool>
siteNick
09/21/2018, 3:07 PMmikepuglisi
09/21/2018, 6:54 PMforwardTo
function in the new prisma-client
?
Related:
https://www.prisma.io/forum/uploads/default/original/1X/3a0c7fe31812577f5d725707d6beaf65e0acc95b.jpg▾
mikepuglisi
09/21/2018, 7:19 PMprisma-client
When I try the following, I get and error:
return context.prisma.postsConnection({ })
Error:
Field 'postsConnection' of type 'PostConnection' must have a sub selection.
Full Repo / File:
https://github.com/mikepuglisi/prisma-client-example/blob/master/index.js
I've also tried this based on something I found online.
return context.prisma.postsConnection({ }, `{
aggregate {
count
}
}`)
JohnS
09/21/2018, 7:55 PMfaure
09/21/2018, 10:39 PMfaure
09/21/2018, 10:40 PMSh4reef
09/21/2018, 11:37 PMSh4reef
09/21/2018, 11:38 PMSh4reef
09/21/2018, 11:39 PMSh4reef
09/21/2018, 11:39 PMprisma/1.17.0-beta.30
Sh4reef
09/21/2018, 11:47 PMnull
Menegazzi
09/22/2018, 3:22 AMJohnS
09/22/2018, 3:37 AMLuke
09/22/2018, 8:14 AM➜ prisma ll
total 32
-rw-r--r-- 1 lukehamilton staff 384B Sep 21 21:55 datamodel.graphql
-rw-r--r-- 1 lukehamilton staff 177B Sep 21 21:57 prisma.yaml
-rw-r--r-- 1 lukehamilton staff 5.1K Sep 21 21:54 seed.graphql
➜ prisma yarn prisma deploy
yarn run v1.9.4
warning package.json: No license field
$ prisma deploy
▸ Couldn't find `prisma.yml` file. Are you in the right directory?
Get in touch if you need help: <https://www.prisma.io/forum/>
To get more detailed output, run $ export DEBUG="*"
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
?ajmakhl
09/22/2018, 9:11 AMcRUSHER
09/22/2018, 1:18 PM