juicycleff
01/17/2018, 9:59 AMrein
01/17/2018, 10:06 AMpokorson
01/17/2018, 10:24 AMdevelomark
01/17/2018, 10:52 AMJoe Fazzino
01/17/2018, 11:15 AMpatrick
01/17/2018, 11:16 AMid
on type FolderConnection!
. Source: document FolderViewer_viewer
file: containers/StartupPage/FolderViewer.js
.picosam
01/17/2018, 11:34 AMtype User @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
jobs: [Job!]! @relation(name: "UserJobs")
}
type Job @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
owner: User! @relation(name: "UserJobs")
criteria: [Criterion!]! @relation(name: "JobCriteria")
}
type Criterion @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
title: String!
job: Job! @relation(name: "JobCriteria")
conditions: [Condition!]! @relation(name: "CriterionConditions")
}
type Condition @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
title: String!
criterion: Criterion! @relation(name: "CriterionConditions")
}
…and I want to make sure that `User`s can only connect `Condition`s they create to their own `Job`s, is this permission correct:
query ($user_id: ID!, $conditionsCondition_id: ID!) {
SomeUserExists(filter: {
AND: [
{ id: $user_id },
{
jobs_some: {
criteria_some: {
conditions_some: {
id: $conditionsCondition_id
}
}
}
}
]
})
}
Currently when I run createCriterion
from the Playground, I get a "code": 3008, "message": "No CONNECT permissions"
error.rein
01/17/2018, 11:34 AMmimica
01/17/2018, 11:46 AMFi1osof
01/17/2018, 11:59 AMWaweru
01/17/2018, 12:00 PMuser
01/17/2018, 12:02 PMhttps://prisma.slack.com/files/U8PB0QPHU/F8V01EYQ6/screenshot_2018-01-17-12-17-10-150_host.exp.exponent.png▾
Waweru
01/17/2018, 12:08 PMhuv1k
01/17/2018, 12:09 PMStef
01/17/2018, 12:13 PMnilan
01/17/2018, 12:14 PMWaweru
01/17/2018, 12:19 PMrein
01/17/2018, 12:19 PMpatrick
01/17/2018, 12:24 PMrick
01/17/2018, 12:28 PMyarn dev
I get Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory.
I think it has something todo with my setup but I don’t know where to lookjoergenbye
01/17/2018, 12:31 PMmimica
01/17/2018, 12:39 PMLotafak
01/17/2018, 1:27 PMharmony
01/17/2018, 1:33 PMjohhansantana
01/17/2018, 2:27 PMpeteflange
01/17/2018, 2:53 PMprisma
docs, these models in particlular. Do you not need to specify @relation
any longer? I believe previously in graphcool
you did have to.
type Post {
id: ID! @unique
title: String!
isPublished: Boolean!
author: User!
}
type User {
id: ID! @unique
age: Int
email: String! @unique
name: String!
posts: [Post!]!
}
Nick Luger
01/17/2018, 3:00 PMJarand
01/17/2018, 3:29 PMupdatedAt
field. I have a one to many relation between to types. When then first relation is set the updatedAt
is updated. But when i add another relation from the updatedAt
is not updated. Is this expected behaviour?johnkpaul
01/17/2018, 3:31 PMdevelomark
01/17/2018, 3:31 PM