Ehsan Sarshar
10/28/2019, 2:32 PMAndres Montoya
10/28/2019, 3:51 PMKhoa Huynh
10/29/2019, 12:37 AMMaxim Ignatev
10/29/2019, 2:46 AMphoton.update
when establishing a websocket connection (im using graphql-yoga
) but db doesnât get updated
What should I do in this situation?Basix
10/29/2019, 4:15 AMBasix
10/29/2019, 4:19 AMisemaj
10/29/2019, 5:15 AMtype Board {
id: ID! @id
list: [List!]! @relation(link: INLINE)
}
type List {
id: ID! @id
board: [Board!]!
}
querying the Board
the list
field will contain only with `id`s but how can I resolve it with the actual document which is the `List`s not the `id`s.
my query looks like
prisma.boards();
I'm using mongodb.karafizi.arthur
10/29/2019, 8:02 AMprisma introspect
on the graphcoolâs mysql docker container I have an error 'ECONNREFUSED': connect ECONNREFUSED 127.0.0.1:3306
. Is anyone knows what the reason of that?Adilet
10/29/2019, 5:11 PManyhowstep
10/29/2019, 5:46 PMEvan Sparkman
10/29/2019, 8:35 PMEvan Sparkman
10/29/2019, 8:36 PMRobert Lemiesz
10/29/2019, 8:46 PMAndres Montoya
10/30/2019, 1:20 AMisemaj
10/30/2019, 3:50 AM@relation
?
Example
type Board {
id: ID! @id
boardTitle: String!
boardDescription: String!
createdBy: User! @relation(name: "UsersBoard" link: INLINE)
}
type User {
id: ID! @id
name: String!
boards: [Board!]! @relation(name: "UsersBoard")
}
Running prisma.boards()
will return boards with boardTitle
and boardDescription
but not including the createdBy
field.
In order to include it I have to use fragment:
const fragment = `
fragment BoardWithCreator on Board {
id
boardId
boardTitle
boardDescription
createdBy {
name
}
}
`;
prisma.boards().$fragment(fragment);
And that will return boards with createdBy
field.
And is there any other way to include createdBy
field without using fragment?Med
10/30/2019, 4:20 AM@generated/photon
to my other project and then importing it. but it can't find it and import it properly:
import { Photon } from './../photon'
const photon = new Photon()
I get the error: does not contain an export named 'Photon'.
Jovaanc
10/30/2019, 9:12 AMJovaanc
10/30/2019, 9:12 AMJovaanc
10/30/2019, 9:13 AMJovaanc
10/30/2019, 9:13 AMJovaanc
10/30/2019, 9:15 AMSiva Karthikeyan Krishnan
10/30/2019, 9:30 AMSiva Karthikeyan Krishnan
10/30/2019, 9:30 AMJovaanc
10/30/2019, 9:34 AMSiva Karthikeyan Krishnan
10/30/2019, 9:39 AMHlm
10/30/2019, 9:56 AMHlm
10/30/2019, 9:57 AMos
from `node_modules/prisma-client-lib/dist/codegen/generators/flow-client.js`: os could not be found within the project.`deactivateduser
10/30/2019, 4:16 PMMaxim Ignatev
10/30/2019, 5:14 PMcount
from my resolver
when printing in console itâs all good
when quering it in graphql playfround i get null
anyone know what might be the problem?Nasser Alsaeed
10/30/2019, 6:40 PMRUST_BACKTRACE=full
for a verbose backtrace.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.