Aguilar
02/05/2018, 11:48 PMmutation ($valueId: ID!, $objects: [ValueobjectsValueObject!]!) {
updateBlog(id: $valueId, objects: $objects) {
id
objects {
id
fields {
id
value
}
}
updatedAt
}
}
Aguilar
02/05/2018, 11:48 PMMr.niko.la
02/06/2018, 3:01 AMfrancois
02/06/2018, 5:58 AMJosef Henryson
02/06/2018, 9:36 AMJosef Henryson
02/06/2018, 9:44 AMFi1osof
02/06/2018, 9:52 AMericsonluciano
02/06/2018, 10:22 AMEmi
02/06/2018, 2:15 PM[Network error]: TypeError: results.filter is not a function
Error: results.filter is not a function
at Object.checkResultAndHandleErrors (C:\workspace\cool-project\server\node_modules\graphql-tools\dist\stitching\errors.js:69:36)
at Object.<anonymous> (C:\workspace\cool-project\server\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:89:52)
at step (C:\workspace\cool-project\server\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:40:23)
at Object.next (C:\workspace\cool-project\server\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:21:53)
at fulfilled (C:\workspace\cool-project\server\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:12:58)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
Any thoughts?
GitHub issue: https://github.com/graphcool/prisma/issues/1833Fi1osof
02/06/2018, 3:09 PMnilan
02/06/2018, 3:12 PMFi1osof
02/06/2018, 3:12 PMEmi
02/06/2018, 3:21 PMprisma info
I get the HTTP endpoint <http://localhost:4466/server/dev>
and Playground is using <http://localhost:4000>
? Shouldn't they be the same? I'm actually using <http://localhost:4000>
with Apollo.Moritz
02/06/2018, 3:32 PMEmi
02/06/2018, 4:19 PMonDelete: CASCADE
and another Comment type related to a Post, are the related Comments deleted automatically when deleting a Post? Is that the idea? Not sure if this is already implemented.Moritz
02/06/2018, 4:40 PMreturn ctx.db.mutation.createGroup(
{
data: {
participants:{
connect: {
ids: participants
}
}
},
},
info
)
Herein, participants is an array containing the user ids I would like to add. However, using connect produces an error when passing an array interpreting the input as a single id. Would connectMany do the trick? tried that but also got errors.Fi1osof
02/06/2018, 5:06 PMMoritz
02/06/2018, 5:31 PMparticipants: [ID]!
with an arbitary number of added participants. is there a quick&dirty typescript syntax to parse this ID- array to the required object array? Or should I change my input type? looping throug the ID-array seems really ugly. Can anyone tell me what would be the best practice here?Kimo
02/06/2018, 6:10 PMsorenbs
Fi1osof
02/06/2018, 6:26 PMpeter
02/06/2018, 7:48 PMEmi
02/06/2018, 7:49 PMThe change you are trying to make would violate the required relation
senorcodecat
02/06/2018, 7:56 PMhuv1k
02/06/2018, 10:01 PMorderBy
but random? 🙂tfiwm
02/06/2018, 10:28 PMwesbos
02/07/2018, 1:55 AMme
query? It throws an error when the user ins’t logged in - doesn’t seem the best way to handle this because it breaks my app - what should I do instead?Kevin S
02/07/2018, 2:50 AMshuo
02/07/2018, 3:46 AM<https://www.prismagraphql.com/docs/quickstart/frontend/react/apollo-shaek6eina>
and I'm encountering couldn't find prisma.yml file. Are you in the right directory?
while attempting to prisma deploy
in /database
.Tavo
02/07/2018, 6:48 AMThe field accountIds must specify the @migrationValue directive, because its type was changed or it became required: @migrationValue(value: "42")
Any reason why I can’t migrate a list of strings ? I thought I don’t need a migrationValue directive for lists