mehdyouras
05/20/2018, 8:50 AMweakky
05/20/2018, 3:23 PMgetUserId(ctx)
from a subscription ? It looks like ctx.request
is null from a subscription šphilch
05/20/2018, 3:58 PMctx.db.exists.Type
always returns true no matter what args? Am I misunderstanding how it is supposed to work?
await <http://ctx.db.exists.Post|ctx.db.exists.Post>({
title: 'blah',
})
should return false but instead it looks like it is just querying the server for all posts and returning true.dreadjr
05/20/2018, 4:00 PMgraphql
type File {
id: ID! @unique
path: String!
}
schema.graphql
graphql
# import File from "./generated/prisma.graphql"
// I want to extend the application schema to load the file and convert to base64, but don't want to keep in database.
Is this possible?
extend type File {
base64: String
}
or inherit
type ExtendedFile inherits File {
base64: String
}
Do I redefine all the File fields in the schema graphql?zonofthor
05/20/2018, 6:04 PMzonofthor
05/20/2018, 6:05 PMzonofthor
05/20/2018, 6:15 PMSQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails
zonofthor
05/20/2018, 6:35 PMjustinrich
05/20/2018, 7:22 PMjustinrich
05/20/2018, 7:23 PMtype User {
id: ID! @unique
email: String! @unique
profilePicture: File
name: String!
createdAt: DateTime!
updatedAt: DateTime!
password: String!
phone: String
location: String
memberships: [Member!]! @relation(name: āMemberOnUserā,cascadeDelete: true)
membershipRequests:[MembershipRequest!]! @relation(name: āUsersRequestingMembershipā)
admin: Boolean! @default(value:false)
}
justinrich
05/20/2018, 7:24 PMuser2: createUser(data:{
id:"123",
name:"athena",
email:"<mailto:athena@hackerpug.com|athena@hackerpug.com>",
password:"athena",
phone:"<tel:925-000-0000|925-000-0000>",
location:"Los Angeles, CA",
}){
id
}
justinrich
05/20/2018, 7:24 PMERROR: Argument 'data' expected type 'UserCreateInput!' but got: {id: "123", name: "athena" ...
Sam Jackson
05/20/2018, 8:20 PMjasonhealy
05/20/2018, 11:40 PMSim
05/21/2018, 12:44 AMsiyfion
05/21/2018, 10:05 AM_RelayId
table is for? And what the data relates too?Vimalraj
05/21/2018, 10:37 AMVimalraj
05/21/2018, 10:40 AMid
attribute, since that is not a field in your UserCreateInput
type.siyfion
05/21/2018, 10:40 AMCreating stage default for service default !
āø Server at <http://localhost:4466> requires a cluster secret. Please provide it with the env var
āø PRISMA_MANAGEMENT_API_SECRET
siyfion
05/21/2018, 10:42 AMprisma.yml
file!!!āRadhey
05/21/2018, 10:50 AMsiyfion
05/21/2018, 11:24 AMsiyfion
05/21/2018, 11:25 AMsiyfion
05/21/2018, 11:27 AMactivityFeed
field on a User
, but I want it to return a type that doesnāt exist in the DB, built up of related data from various tables and logic..hamdi
05/21/2018, 11:47 AMJim
05/21/2018, 12:16 PMterion
05/21/2018, 12:46 PM#graphql-import
is there a way to modify imported types? I want to import mutations from generated schema and lock them with auth
directive. And can't find any way for doing thisterion
05/21/2018, 12:47 PMtype Mutation @auth {
#import Mutation.createArticle from "src/schema/generated/mysql.graphql"
}
but this doesn't workMike
05/21/2018, 12:56 PMfield = field + 1
?dennisko
05/21/2018, 1:24 PM