Hi everybody, I'm new to graphcool, actually worki...
# prisma-whats-new
g
Hi everybody, I'm new to graphcool, actually working through this course: https://www.howtographql.com/react-relay/ I'm having problems with
graphcool init
using this schema:
Copy code
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:
Copy code
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!
n
please create a new issue here: https://github.com/howtographql/react-relay 🙂
m
Hey @Gordan, can you try
[Link!]!
g
awesome, it worked! @nilan will create an issue