impowski
11/01/2018, 9:50 PMMartin Hunt
11/01/2018, 11:10 PMRVM
11/02/2018, 1:27 AMAndres Montoya
11/02/2018, 4:31 AMZefex Developer
11/02/2018, 4:34 AMcreateBook
and also specify the chapters
for this book in on single mutation.Serhii Kyrychenko
11/02/2018, 9:22 AMmacieks
11/02/2018, 12:12 PM? Set up a new Prisma server or deploy to an existing server? Create new database
? What kind of database do you want to deploy to? MySQL
? Select the programming language for the generated Prisma client Prisma JavaScript Client
Created 3 new files:
prisma.yml Prisma service definition
datamodel.prisma GraphQL SDL-based datamodel (foundation for database)
docker-compose.yml Docker configuration file
Next steps:
1. Start your Prisma server: docker-compose up -d
2. Deploy your Prisma service: prisma deploy
3. Read more about Prisma server:
<http://bit.ly/prisma-server-overview>
internal/modules/cjs/loader.js:594
throw err;
^
Error: Cannot find module 'generate'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:592:15)
at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1278:46)
at Function.Module._load (internal/modules/cjs/loader.js:518:25)
at Function.Module.runMain (pkg/prelude/bootstrap.js:1307:12)
at startup (internal/bootstrap/node.js:274:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:608:3)
prolink007
11/02/2018, 3:21 PMemattias
11/02/2018, 3:41 PMyolen
11/02/2018, 3:53 PMapiVersion: v1
kind: ConfigMap
metadata:
name: prisma-configmap
namespace: prisma
labels:
stage: production
name: prisma
app: prisma
data:
PRISMA_CONFIG: |
port: 4466
# uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
# managementApiSecret: my-secret
databases:
default:
connector: mysql
host: database
port: 3306
user: root
password: prisma
migrations: true
i.e. if I had a secret or an env var e.g. in .env file describing my db password how do I then inject that into the configMAP?mablek
11/02/2018, 4:24 PMmablek
11/02/2018, 4:26 PMZefex Developer
11/02/2018, 4:42 PMcreateBook
and also specify the chapters
for this book in on single mutation.Nick
11/02/2018, 6:16 PMRachel
11/02/2018, 8:15 PMAl
11/02/2018, 9:37 PMdspacejs
11/03/2018, 2:35 AMdspacejs
11/03/2018, 2:36 AMAkira Laine
11/03/2018, 4:37 AMCreate a server
, it throws an error saying GraphQL error: Invalid Version: 1.17
. Any ideas on whats going on?jamiehalvorson
11/03/2018, 10:34 AMemattias
11/03/2018, 1:24 PMMartin Hunt
11/03/2018, 4:17 PMquery GET_CATEGORIES{
categories {
name
id
description
posts {
id
}
}
}
What I really need from the posts is the total count of the posts assigned to each category. Right now I'm just calling posts.length on the returned array of ID's but I'm guessing that's not particularly future proof / scalable.
Any help would be massively appreciated!andrew
11/03/2018, 8:12 PMadebiyial
11/03/2018, 9:08 PMBraden
11/03/2018, 9:25 PMarturgvieira
11/03/2018, 10:08 PMarturgvieira
11/03/2018, 10:12 PMLuca Rath-Heel
11/03/2018, 11:30 PMimpowski
11/04/2018, 12:21 AMtest('create new user', async t => {
const res = await client.request(
print(signupMutation), { name: 'Test', email: '<mailto:test@test.com|test@test.com>', password: 'test'}
)
t.truthy(res.signup.user);
const user = await prisma.deleteUser({
id: res.user.id
})
console.log(user)
t.truthy(user)
})
If const res
doesn’t have any
it’s not running tests properlyGorodov Maksim
11/04/2018, 7:16 AM