Luke
03/20/2018, 3:40 AMLuke
03/20/2018, 3:40 AMLuke
03/20/2018, 3:45 AMLuke
03/20/2018, 3:46 AMtopics: { connect: { name : "Productivity" } }
line ?beb
03/20/2018, 3:47 AMTopic
defintion?Luke
03/20/2018, 3:47 AMtype Topic {
id: ID! @unique
name: String!
slug: String!
}
Luke
03/20/2018, 3:49 AMbeb
03/20/2018, 3:49 AMbeb
03/20/2018, 3:49 AMLuke
03/20/2018, 3:50 AMmutation {
topic1: createTopic(data: {
name: "Productivity"
slug: "productivity"
}) {
id
}
product1: createProduct(data: {
name: "Caramella"
slug: "caramella"
tagline: "A clean, modern blogging platform without the fuss"
votes_count: 473
comments_count: 28
topics: { connect: { name : "Productivity", slug: "productivity" } }
}) {
id
}
}
beb
03/20/2018, 3:55 AMtopics: { connect: [ { name : "Productivity" } ] }
Luke
03/20/2018, 3:56 AMERROR: Argument 'data' expected type 'ProductCreateInput!' but got: {name: "Caramella", slug: "caramella", tagline: "A clean, modern blogging platform without the fuss", votes_count: 473, comments_count: 28, topics: {connect: [{name: "Productivity"}]}}. Reason: 'topics.connect[0].name' Field 'name' is not defined in the input type 'TopicWhereUniqueInput'. (line 8, column 33):
product1: createProduct(data: {
^
(line 14, column 5):
topics: { connect: [ { name : "Productivity" } ] }
^
(line 14, column 15):
topics: { connect: [ { name : "Productivity" } ] }
^
(line 14, column 24):
topics: { connect: [ { name : "Productivity" } ] }
^
(line 14, column 28):
topics: { connect: [ { name : "Productivity" } ] }
^
Luke
03/20/2018, 3:56 AMLuke
03/20/2018, 4:21 AMLuke
03/20/2018, 4:21 AMLuke
03/20/2018, 4:21 AMLuke
03/20/2018, 4:21 AMlancej
03/20/2018, 6:59 AMAkshay
03/20/2018, 8:29 AMAkshay
03/20/2018, 8:29 AMnampdn
03/20/2018, 8:38 AMrein
03/20/2018, 9:29 AMjwt malformed
rein
03/20/2018, 9:29 AMconst jwt = require('jsonwebtoken');
module.exports = (parent, args, ctx, info) => {
const Authorization = ctx.request.get('Authorization');
if (Authorization) {
const token = Authorization.replace('Bearer ', '');
const { userId } = jwt.verify(token, 'mysecret123');
return ctx.db.query.user({ where: { id: userId } }, info);
}
return null;
};
lawrence
03/20/2018, 10:14 AM@relation
directive, however this is now being forced when trying to deploy after creating a second non-relational type after upgrading to 1.4.1. Is it mandatory again or have I encountered a bug? @nilan? thanks!Adrián
03/20/2018, 11:43 AMAdrián
03/20/2018, 11:43 AMAdrián
03/20/2018, 11:44 AMAdrián
03/20/2018, 11:44 AMAdrián
03/20/2018, 11:45 AMAdrián
03/20/2018, 11:45 AM