Gaurav
02/17/2019, 11:04 AMERROR: GraphQL Error (Code: 403)
{
"error": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"<http://www.w3.org/TR/html4/loose.dtd\>">\n<HTML><HEAD><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n<TITLE>ERROR: The request could not be satisfied</TITLE>\n</HEAD><BODY>\n<H1>403 ERROR</H1>\n<H2>The request could not be satisfied.</H2>\n<HR noshade size=\"1px\">\nRequest blocked.\n\n<BR clear=\"all\">\n<HR noshade size=\"1px\">\n<PRE>\nGenerated by cloudfront (CloudFront)\nRequest ID: F1p-BRhgUCswG9FdqFidDtmAFH-H3lVravSJgC19jz9xykxTxP_1ew==\n</PRE>\n<ADDRESS>\n</ADDRESS>\n</BODY></HTML>",
"status": 403
}
Get in touch if you need help: <https://www.prisma.io/forum/>
To get more detailed output, run $ export DEBUG="*"
Zyon
02/17/2019, 1:25 PMcontext.prisma.query.user()
, the results don't include properties of @embedded or INLINE relation types. How can I have the query return all properties no matter what type it is (String, Boolean, @embedded, INLINE)lewisedc
02/17/2019, 1:39 PMmikkelsl
02/17/2019, 1:43 PMPerlkönig
02/17/2019, 8:53 PMgraphql-cli
and graphql-config
. Anybody around? I see this is a much more general forum.andrux
02/17/2019, 10:18 PMandrux
02/17/2019, 10:19 PMquery {
posts(where: {
comments_every: {
text: "testing post comment reply"
}
}) {
id
text
comments {
text
}
}
}
andrux
02/17/2019, 10:20 PMiago
02/17/2019, 10:54 PMmutation {
createUser(
data: {
provider: { connect: { domain: "this.exists" } }
email: "email"
}
) {
email
}
}
It's an internal prisma error, and the mongo error is Unrecognized field in update operation: arrayFilters
FYI connecting though an @id
fails as well.sscotth
02/18/2019, 12:13 AMSubscription
type in their schemasscotth
02/18/2019, 12:13 AM[ERROR] 17:53:57 ⨯ Unable to compile TypeScript:
src/generated/prisma-client/index.ts(120,58): error TS2304: Cannot find name 'SubscriptionPromise'.
src/generated/prisma-client/index.ts(232,58): error TS2304: Cannot find name 'SubscriptionPromise'.
src/generated/prisma-client/index.ts(236,9): error TS2304: Cannot find name 'SubscriptionPromise'.
src/generated/prisma-client/index.ts(245,9): error TS2304: Cannot find name 'SubscriptionPromise'.
src/generated/prisma-client/index.ts(248,8): error TS2304: Cannot find name 'SubscriptionPromise'.
src/generated/prisma-client/index.ts(2489,14): error TS2304: Cannot find name 'SubscriptionPromise'.
src/generated/prisma-client/index.ts(2496,14): error TS2304: Cannot find name 'SubscriptionSubscription'.
sscotth
02/18/2019, 12:14 AMSubscription
type to Sub
it workssscotth
02/18/2019, 12:17 AMdefaultResolvers
not populating in graphqlgen.tsvdiaz1130
02/18/2019, 1:18 AMextendType({...})
. this of course is causing my number of imports to grow substantially. Is there a way to load types from glob?
const schema = makePrismaSchema({
types: [__dirname + './resolvers/**/*.resolver.ts'] // <---- I'd like to load types from glob
...
})
darrindickey
02/18/2019, 5:54 AM- generator: graphql-schema
output: ../src/generated/graphql-schema/
Now, I have /generated/schema.graphl and /generated/graphql-schema/prisma.graphql.
I added this to my data model.graphql:
# import User from '.,/../../database/datamodel.graphql'
I still get this error. Any further suggestions on what I can do to track down this issue?Raviv
02/18/2019, 8:28 AMtype buttonStyle {id: ID! border: Json}
the Json content is something like:
{"style": "solid", "width": "1", "color": "#000000"}
I want to fetch all nodes that border.style = solid
Is that possible?dferber90
02/18/2019, 10:57 AMarthur
02/18/2019, 12:10 PMmichael.glitzos
02/18/2019, 3:35 PMMihaita Ivli
02/18/2019, 3:43 PM[31m[SubscriptionSessionActor] Received unknown message: com.prisma.subscriptions.protocol.SubscriptionProtocolV07$Requests$GqlConnectionTerminate$@336f4824[0m
any ideea what might be wrong? We are not terminating the subscription, we’re just getting disconnected after a while
We’re on Prisma 1.24 atm and running on EBjoan
02/18/2019, 3:56 PMevents
from loading places
from other events? ATM, when I create a new place
, it also shows in other events 😮joan
02/18/2019, 3:56 PMconst resolvers = {
Query: {
events: (parent, args, context) => {
return context.prisma.events();
},
event: (parent, { slug }, context) => {
return context.prisma.event({ slug });
}
},
Event: {
places: (parent, args, context) => {
return context.prisma.places();
}
},
Mutation: {
createEvent(parent, { title, slug }, context) {
return context.prisma.createEvent({ title, slug });
},
updateEvent(parent, { id, title, slug, description, dates, menus }, context) {
return context.prisma.updateEvent({
where: { id },
data: { title, slug, description, dates: { set: dates }, menus: { set: menus } }
});
},
deleteEvent(parent, { id }, context) {
return context.prisma.deleteEvent({ id });
},
createPlace(parent, { name, url, event }, context) {
return context.prisma.createPlace({
name,
url,
event: { connect: { id: event } },
});
},
deletePlace(parent, { id }, context) {
return context.prisma.deletePlace({ id });
}
},
}
joan
02/18/2019, 3:56 PMtype Query {
events: [Event!]!
event(slug: String!): Event
places: [Place!]!
}
type Mutation {
createEvent(title: String!, slug: String!): Event
deleteEvent(id: ID!): Event
updateEvent(id: ID!, title: String!, slug: String!, description: String, dates: [String], menus: [String]): Event
createPlace(name: String!, url: String, event: ID!): Place
deletePlace(id: ID!): Place
}
type Event {
id: ID!
slug: String!
title: String!
description: String
dates: [String]
places: [Place]
menus: [String]
}
type Place {
id: ID!
name: String!
url: String
event: Event!
}
joan
02/18/2019, 4:06 PMJoeE
02/18/2019, 6:11 PMserum
02/18/2019, 7:50 PMiago
02/18/2019, 8:51 PMconst subscription = await db
.updateSubscription({
data: {
playlists: {
update: {
sections:{
create:{
name,
},
},
},
},
},
where: { id: subscription_id },
})
.$fragment(graphql`
{
id
playlists {
sections {
id
name
# updatedAt
}
}
}
`)
)
const { id } = find(subscription.playlists.sections, ({ name: name_ })=> name_ === name)
// orderBy(subscription.playlists.sections, 'updatedAt', 'desc')[0]
Nick
02/19/2019, 6:06 AMrawriclark
02/19/2019, 6:43 AMrein
02/19/2019, 9:48 AM