Gordan
12/20/2017, 5:59 PMgraphcool init
using this schema:
type User @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
name: String!
links: [Link!] @relation(name: "UsersLinks")
votes: [Vote!] @relation(name: "UsersVotes")
}
type Link @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
url: String!
description: String!
postedBy: User @relation(name: "UsersLinks")
votes: [Vote!] @relation(name: "VotesOnLink")
}
type Vote @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
user: User @relation(name: "UsersVotes")
link: Link @relation(name: "VotesOnLink")
}
(taken from here: https://www.graphqlbin.com/hn-relay.graphql)
Getting an error, saying:
The relation field `links` has the wrong format: `[Link!]` Possible Formats: `Link`, `Link!`, `[Link!]!`
I'm using graphcool version 0.4
If anyone would be able to give me a hand, I'd appreciate it very much
Thanks!nilan
12/20/2017, 6:14 PMmatic
12/20/2017, 6:28 PM[Link!]!
Gordan
12/20/2017, 6:47 PM