marcaaron
08/01/2018, 6:16 AMzak.singh
08/01/2018, 6:56 AMsiyfion
08/01/2018, 4:17 PMextend type XX
to remove a field from the original type is there? Just thinking if there were, that would be the perfect way to “hide” certain fields from the prisma generated schema, without having to worry about copy/paste/repeat each time the prisma schema changed for that type.peter
08/01/2018, 5:21 PMprisma-bindings
with an example query such as
prisma.mutation.updateUser({ where: { id: 'cjcdi63j80adw0146z7r59bn5' }, data: { name: 'Sarah' } }, '{ id }')
how can I specify to receive the entire User
object back as the selection set (ideally without specifying each field)?
fragments?danielrasmuson
08/01/2018, 7:39 PMmutation{
createTeam(data:{
name:"hi",
}){
id
name
createdBy{
email
}
}
}
prisma-binding call
return context.db.mutation.createTeam({
data: {
name: args.data.name,
organization: {
connect: {
id: context.organizationId
}
},
createdBy: {
connect: {
id: context.userId
}
}
}
}, info)
I could use
context.db.mutation.createTeam({data: {...}}, `{id, name, createdBy{ email }}`)
But I don't know what fields will be used in the selectionJoe Fazzino
08/01/2018, 8:58 PMError: GraphQL error: Whoops. Looks like an internal server error.
response from my server. Does anyone have any advice on how to fix? This is on prisma-eu1 by the way.
EDIT: It was because my prisma token
had expired
EDIT EDIT: It's still broken on my client 😞
SUPER EDIT: this is in the console of Prisma Cloud when I try and browse the offending data
Error: {
"message": "Whoops. Looks like an internal server error. Search your server logs for request ID: eu1:api:cjkbmgzw77v4a0a84t7bsh27f",
"path": [
"users"
],
"locations": [
{
"line": 2,
"column": 3
}
],
"requestId": "eu1:api:cjkbmgzw77v4a0a84t7bsh27f"
}
In my most recent deploy I deleted a field that had data in it and added a new optional field with a default value. I probably shouldn't of forced the deploy...
FINAL EDIT: I fixed it by readding the field that I force deleted. Lesson Learnt, I won't delete this because I think other people could benefit from it.Nick
08/01/2018, 9:30 PMKee
08/02/2018, 3:16 AMprisma:
image: prismagraphql/prisma:1.13
# container_name: "idea-prisma"
restart: always
depends_on:
- postgres
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
# uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
managementApiSecret: mysecret123
databases:
default:
connector: postgres
host: postgres
port: 5432
user: prisma
password: prisma
migrations: true
database: prisma
How can I delete my created database prisma
? using Navicat premiun deleted ERROR: cannot drop the currently open databaseelwinarens
08/02/2018, 5:14 AMelwinarens
08/02/2018, 5:14 AMnilan
08/02/2018, 8:29 AMPedro Jardim
08/02/2018, 12:22 PMrein
08/02/2018, 1:10 PMaroman
08/02/2018, 2:36 PMjava.util.concurrent.RejectedExecutionException: Task slick.basic.BasicBackend$DatabaseDef$$anon$2@5f6fc9a0 rejected from slick.util.AsyncExecutor$$anon$2$$anon$1@4469989b[Running, pool size = 10, active threads = 10, queued tasks = 1000, completed tasks = 93810]
kratam
08/02/2018, 10:17 PMschema.graphql
(not prisma datamodel.graphql
) with resolved `import`s?
_edit_: For anyone interested: gql2ts
seems to do the trick (without the import stuff)w0wka91
08/02/2018, 11:44 PMHelmi
08/03/2018, 2:26 AMNicola Molinari
08/03/2018, 9:18 AMNils
08/03/2018, 9:40 AMapollo: {
allPosts: {
query: FeedQuery,
loadingKey: 'loading',
},
}
But in the latest Vue Apollo integration you can use it right in the template:
<ApolloQuery
:query="require('../graphql/HelloWorld.gql')"
:variables="{ name }"
>
<template slot-scope="{ result: { loading, error, data } }">
I’m looking for more up to date information on how to interface to the graphcool functions (i.e. server/src/authenticate.js
) from the templates in this way. Can’t find anything. Any articles out there?Nils
08/03/2018, 9:41 AMauthenticate.js
) once in the server and again in the client? Haven’t found any clear examples.Nils
08/03/2018, 10:29 AMterion
08/03/2018, 1:47 PMctx.db.query.listByMunicipality({municipality: 1, where: {status: "ACTIVE"}}, dataRequest)
Expected type ModuleRegistryStatusEnum, found "ACTIVE"; Did you mean the enum value ACTIVE or INACTIVE?
terion
08/03/2018, 1:48 PMrwatts3
08/03/2018, 3:40 PMrwatts3
08/03/2018, 3:41 PMMoritz
08/03/2018, 3:52 PMaazlant
08/03/2018, 10:37 PMaazlant
08/03/2018, 10:37 PMaazlant
08/03/2018, 10:37 PMcfofiu
08/03/2018, 10:46 PM"Exception in thread "main" java.lang.RuntimeException: Unable to load Prisma config: java.lang.RuntimeException: No valid Prisma config could be loaded."
Anyone can help? Any idea why?