alexc
11/15/2017, 2:30 PMagartha
11/15/2017, 10:18 PMserverless-plugin-typescript
repo?tim loewel
11/15/2017, 3:00 PMtim loewel
11/15/2017, 3:01 PMtim loewel
11/15/2017, 3:03 PMcreateUser
-Mutation with GraphQL error: The provided idToken is invalid
no matter if I use HS256 or RS256 for the signature algorithm.tim loewel
11/15/2017, 3:16 PMtim loewel
11/15/2017, 3:18 PMpokorson
11/15/2017, 5:01 PMUser
and Post
types, user can have many posts. And now I want to allow user creation but not with nested projectspokorson
11/15/2017, 5:01 PMpokorson
11/15/2017, 5:02 PMmarkmiller21
11/15/2017, 5:51 PMroundDateText: DateTime @defaultValue(value: () => new Date())
roundDateText: DateTime @defaultValue(value: new Date())
roundDateText: DateTime @defaultValue(value: Date())
kindjames
11/15/2017, 5:52 PMsubscription
based on a _allxxxxMeta
query
? i.e I would like to know when a ‘count’ changes.bwoodlt
11/15/2017, 5:56 PM[object object]
issue when graphql
subscription
is executed should please help! 3 days on this issue yet still on it… 😞Fitch
11/15/2017, 6:16 PMFitch
11/15/2017, 6:17 PMFitch
11/15/2017, 6:17 PMtimwis
11/15/2017, 7:55 PMuser: User!
property, allowing the client to specify which fields, and even get a related object. Is that possible? All the examples return explicit fields only in a custom object.Kat
11/15/2017, 9:51 PMKat
11/15/2017, 9:51 PMbobbyt
11/15/2017, 10:02 PMCombined
You can also use tags and tagsIds in the same mutation, this would connect the new Tutorial node to all the tags in tagsIds and connect it to the new tags in tags. This is what you want to do if you want to only allow tags with a unique text, so for a new Tutorial, there will likely be some tags that already exists, and some that need to be created.In my case, I am trying to update a set of tags on a Post. I am able to pass both
tags
(new tags) and tagsIds
(ids of tags that already exist) to my mutation:
const updatePostQuery = ({
id,
createdById,
timestamp,
imageUrl,
description,
tags,
tagsIds,
}) => ({
mutation: gql`
mutation updatePost(
$id: ID!
$createdById: ID!
$timestamp: DateTime!
$imageUrl: String
$description: String
$tags: [PosttagsTag!]!
$tagsIds: [ID!]
) {
updatePost(
id: $id
createdById: $createdById
timestamp: $timestamp
imageUrl: $imageUrl
description: $description
tags: $tags
tagsIds: $tagsIds
) {
id
timestamp
description
tags {
id
tag
}
imageUrl
createdBy {
id
username
}
}
}
`,
variables: {
id,
createdById,
timestamp,
imageUrl,
description,
tags,
tagsIds,
},
});
However, I get the following error:
ERROR: [Error: GraphQL error: A unique constraint would be violated on Post. Details: Sorry, no more details available.]
While the new tag is added successfully the mutation seems to be trying to append the ids of the existing tags to the field instead of updating their values?sebastien
11/15/2017, 10:04 PMMiezan
11/15/2017, 11:45 PMamanda_hogan
11/16/2017, 1:35 AMquery {
allAnswers(filter: {
keywords_contains: "location"
}) {
response
}
}
This is an example of the Type in the schema type Answer @model {
id: ID! @isUnique
intent: String!
keywords: [String!]
response: String!
subject: String! @isUnique
timeStamp: DateTime!
}
and I am getting this error {
"data": null,
"errors": [
{
"message": "Argument 'filter' expected type 'AnswerFilter' but got: {keywords_contains: \"location\"}. Reason: 'keywords_contains' Field 'keywords_contains' is not defined in the input type 'AnswerFilter'. (line 2, column 22):\n allAnswers(filter: {\n ^\n (line 3, column 5):\n keywords_contains: \"location\"\n ^",
"locations": [
{
"line": 2,
"column": 22
},
{
"line": 3,
"column": 5
}
]
}
]
}
can someone point out where I am going wrong.virtualirfan
11/16/2017, 2:03 AMType
in the Console would automatically create and maintain the createdAt
and updatedAt
fields. Am I misremembering? Now, it looks like they are there for the system types but not the user types. What gives?gauravkaushik
11/16/2017, 2:16 AMMoonTahoe
11/16/2017, 3:38 AMFitch
11/16/2017, 4:13 AMdivyendu
11/16/2017, 7:12 AMMaslov
11/16/2017, 7:45 AMVinnie
11/16/2017, 9:23 AMNo service with id 'cj9ttwnlb009h0150kg59sgb0' in account <mailto:test@test.org|test@test.org>. Please check if you are logged in to the right
▸ account.
What’s right way to approach this? It is only removing the local target from .graphcoolrc
?