tsdexter
07/11/2018, 4:05 AMjustSlone
07/11/2018, 4:08 AMtsdexter
07/11/2018, 4:15 AMjustSlone
07/11/2018, 4:17 AMtmoney
07/11/2018, 6:01 AMtmoney
07/11/2018, 6:04 AMtmoney
07/11/2018, 6:06 AMKevin S
07/11/2018, 7:03 AMKevin S
07/11/2018, 7:04 AMKevin S
07/11/2018, 7:05 AMKevin S
07/11/2018, 7:21 AMJames Bradly
07/11/2018, 7:33 AMNick
07/11/2018, 8:05 AMnpm uninstall -g graphql-cli
and yarn global remove graphql-cli
) whenever I type graphql it still works in terminal how?nilan
07/11/2018, 8:12 AMRaeesaa
07/11/2018, 8:19 AMtype User {
id: ID! @unique
username: String!
password: String!
memberships: [Membership!]!
...
...
}
type Blog {
id: ID! @unique
name: String!
isPublished: Boolean @default(value: "false")
...
...
}
type Membership {
id: ID! @unique
user: User!
blog: Blog
...
...
}
Now, what I need to do is, whenever query for getting blogs is made, I need to return only those blogs which user has membership of and have been published. Also, I need to respect arguments passed by client in query.
Current resolver code without any authorization check looks like
blogs: async (_, args, ctx: Context, info) => {
return ctx.prisma.query.blogs(args, info)
}
One way of achieving this would have been filtering out records returned by Prisma binding call but there is no guarantee that id and isPublished flag would be returned in response.theom
07/11/2018, 12:51 PMquery allPostsCommentsQuery ($first: Int, $skip: Int, $orderBy: PostOrderBy) {
_allPostsesMeta {
count
}
}
How do I return the count in this prisma instance?
const FEED_QUERY = gql`
query FeedQuery($first: Int, $skip: Int, $orderBy: PostOrderByInput) {
feed(first: $first, skip: $skip, orderBy: $orderBy) {
id
text
title
isPublished
author {
name
}
}
}
`
terion
07/11/2018, 1:15 PMThe relation field `documents` has the wrong format: `[File]` Possible Formats: `File`, `File!`, `[File!]!`
terion
07/11/2018, 1:15 PMsunrising
07/11/2018, 1:54 PMWe're currently synchronizing your project data. Please wait a little bit until Billing is available here.
I contacted the support team but after days I still have no response, fact that leads me to the second question: the shared cluster project account, which I will use with graphcool-framework, has the email support, but how long is the support is going to take to get in touch? If i have a time sensitive/ critical question can i expect a response in 1/10/24/48... hours?kristopherlb
07/11/2018, 2:51 PMJP
07/11/2018, 2:54 PMterion
07/11/2018, 3:05 PMYou are creating a required field but there are already nodes present that would violate that constraint
I know that this is an "expected behaviour" that adding required fields with default doesn't work, but how this can be worked around?Haider Malik
07/11/2018, 4:41 PMKevin S
07/11/2018, 6:10 PMKevin S
07/11/2018, 6:10 PMKevin S
07/11/2018, 6:10 PMKevin S
07/11/2018, 6:11 PMTangoJuliett
07/11/2018, 6:42 PMTangoJuliett
07/11/2018, 6:49 PMprismagraphql/prisma:1.11
TangoJuliett
07/11/2018, 6:50 PM