Rory Kelly
11/06/2017, 9:29 AMlancej
11/06/2017, 9:34 AMnilan
11/06/2017, 9:35 AMmv
11/06/2017, 9:39 AMhepin1989
11/06/2017, 10:23 AMJannis Pohlmann
11/06/2017, 12:45 PMdaniele
11/06/2017, 1:24 PMgraphcool init
it create also a folder src
that folder is just a sort of test client
correct? the only thing that really is needed is the ypes.graphcql?Jannis Pohlmann
11/06/2017, 1:33 PMsignupUser
and createUser
). Is there a way to prevent that?daniele
11/06/2017, 1:54 PMjohhansantana
11/06/2017, 2:50 PMsenorcodecat
11/06/2017, 3:02 PMsenorcodecat
11/06/2017, 3:02 PMjoar
11/06/2017, 3:07 PMsenorcodecat
11/06/2017, 3:08 PMsenorcodecat
11/06/2017, 3:09 PMsenorcodecat
11/06/2017, 3:09 PMjoar
11/06/2017, 3:12 PMjoar
11/06/2017, 3:30 PMCannot find module ’/var/task/node_modules/bcrypt/lib/binding/bcrypt_lib.node
joar
11/06/2017, 3:31 PMjohhansantana
11/06/2017, 3:38 PMconst GraphQLClient = require('graphql-request').GraphQLClient
module.exports = function (event) {
const client = new GraphQLClient('<https://api.graph.cool/simple/v1/appId>');
function getItem() {
return client.request(`
{
User(id:"randomUserId") {
id
email
shoppingCart {
products
}
}
}
`)
}
const items = getItem()
console.log('ITEMS: ', items)
return {
data: {
products: items
}
}
}
this is a custom resolver but the query there returns nothing, what am I doing wrongJang
11/06/2017, 3:58 PMError writing modules:
RangeError: Maximum call stack size exceeded
```Jang
11/06/2017, 3:59 PMJang
11/06/2017, 4:00 PMrelay-compiler
Jang
11/06/2017, 4:01 PMtype Post @model {
# Required system field
id: ID! @isUnique # read-only (managed by Graphcool)
# Optional system fields (remove if not needed)
createdAt: DateTime! # read-only (managed by Graphcool)
updatedAt: DateTime! # read-only (managed by Graphcool)
description: String!
imageUrl: String!
author: User! @relation(name: "PostOwner")
comments: [Comment!]! @relation(name: "PostComment")
}
type User @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
email: String!
posts: [Post!]! @relation(name: "PostOwner")
comments: [Comment!]! @relation(name: "CommentOwner")
}
type Comment @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
message: String!
post: Post! @relation(name: "PostComment")
author: User! @relation(name: "CommentOwner")
}
Jang
11/06/2017, 4:03 PMolaf
11/06/2017, 4:08 PMolaf
11/06/2017, 4:08 PMJannis Pohlmann
11/06/2017, 4:08 PMPedro Jardim
11/06/2017, 4:09 PMmlukaszczyk
11/06/2017, 4:10 PM