Hinrichs
12/20/2017, 5:20 PMuyasarkocal
12/20/2017, 5:50 PMGordan
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!agartha
12/20/2017, 6:00 PMgc deploy
(1.0)
ERROR: GraphQL Error (Code: 405)
{
"error": "HTTP method not allowed, supported methods: GET",
"status": 405
}
agartha
12/20/2017, 6:18 PM"Whoops. Looks like an internal server error. Please contact us from the Console (<https://console.graph.cool>) or via email (support@graph.cool) and include your Request ID: api:api:cjbfds7du00a00155clwikh9f"
mickdekkers
12/20/2017, 7:03 PMQuiz
model has an associated list of `Question`s (many to many relation), and I'd like to be able to guarantee the order that these `Question`s are returned in.mickdekkers
12/20/2017, 7:07 PMAnswer
model and relations excluded):
type Quiz @model {
name: String!
questions: [Question!]! @relation(name: "QuizQuestions")
}
type Question @model {
text: String!
quizzes: [Quiz!]! @relation(name: "QuizQuestions")
}
Omer Arie Goldberg
12/20/2017, 7:23 PMOmer Arie Goldberg
12/20/2017, 7:23 PMOmer Arie Goldberg
12/20/2017, 7:24 PMOmer Arie Goldberg
12/20/2017, 7:24 PMOmer Arie Goldberg
12/20/2017, 7:24 PMjohhansantana
12/20/2017, 8:13 PMrein
12/20/2017, 9:21 PMrein
12/20/2017, 10:36 PMtype Update {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
text: String!
creator: User! @relation(name: "UserUpdates")
}
type User {
id: ID! @unique
email: String! @unique
firstName: String!
lastName: String!
profilePicture: String!
providerId: String!
updates: [Update!]! @relation(name: "UserUpdates")
}
Graham Ballantyne
12/21/2017, 12:05 AMgraphql create
(using the beta version)? The only one I can get it to work with is the react-fullstack-basic
one; everything else dies with
graphql create test
? Choose GraphQL boilerplate project: node-basic Basic GraphQL server (incl. database)
[graphql create] Downloading boilerplate from <https://github.com/graphql-boilerplates/node-graphql-server/archive/master.zip>...
events.js:183
throw er; // Unhandled 'error' event
^
Error: invalid signature: 0xa292e0fc
at /Users/grahamb/.nvm/versions/node/v8.9.3/lib/node_modules/graphql-cli/node_modules/unzip/lib/parse.js:59:13
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
qsys
12/21/2017, 2:14 AMqsys
12/21/2017, 2:31 AMqsys
12/21/2017, 3:03 AMqsys
12/21/2017, 3:03 AMqsys
12/21/2017, 3:04 AMagartha
12/21/2017, 3:04 AMqsys
12/21/2017, 3:04 AMqsys
12/21/2017, 3:04 AMqsys
12/21/2017, 3:05 AMagartha
12/21/2017, 3:06 AMqsys
12/21/2017, 3:06 AMMars
12/21/2017, 8:25 AMMars
12/21/2017, 8:26 AMMars
12/21/2017, 8:27 AM