pllumh
12/01/2018, 10:43 PMpllumh
12/01/2018, 10:44 PMpllumh
12/01/2018, 10:44 PMHendrik Wendt
12/01/2018, 11:30 PMspawnSync graphql ENOENT on hooks: post-deploy: -graphql get-schema -p prisma ?CCBCodeMonkey
12/02/2018, 4:03 AMAndres Montoya
12/02/2018, 1:08 PMAnh
12/02/2018, 4:07 PMcfree
12/02/2018, 6:04 PMpasa
12/02/2018, 6:26 PMversion: '3'
services:
prisma:
image: prismagraphql/prisma:1.7
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
managementApiSecret: abc
databases:
default:
connector: mysql
active: true
host: localhost
port: 3306
user: dude
password: 123456
As you can guess, mysql is installed on the root server as well and should be called by the user 'dude', that has currently ALL PRIVILEGES on all dbs @ %. But unfortunately I get the following error:pasa
12/02/2018, 7:38 PMprisma deploy, I receive the following error:
▸ Could not connect to server at <http://localhost:4466>. Please check if your server is running.
docker ps -a
delivers:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS 8fe67f1d8ee3 prismagraphql/prisma:1.7 "/bin/sh -c /app/sta…" 5 minutes ago Up 5 minutes 0.0.0.0:4466->4466/tcp
NAMES
service_prisma_1
Any ideas?Martin Hunt
12/02/2018, 9:40 PMdocker exec 3967e1d0b194 /usr/bin/mysqldump --default-character-set=utf8mb4 -u root --password=prisma prisma > backup.sql
Which seems to be semi-working. It creates a backup of the deployed prisma API but doesn't seem to contain any of the entries / values that have been created via the deployed API. Could anyone point me in the right direction?ian izaguirre
12/02/2018, 11:03 PM@relation ... If I have a field in my datamodel.prisma like type Item { parent: String! } how can I change that so it becomes a relationship to another type. If I change it into type Item { parent: Collection! @relation(name: "CollectionItemBelongsIn", onDelete: SET_NULL) } ... then I can no longer pass the field "parent" a String ?Lobo
12/03/2018, 7:29 AMeleazar
12/03/2018, 8:46 AMprisma init hello-world and prisma deploy. So I tried to init using the ipv4 address of the droplet, but I keep getting the ERR_INVALID_URL and Could not connect to server error. I tried with http:// and without, and i can’t get it to work. I’ve pinged the server and ensured that it’s running. Any help would be appreciated!Nick
12/03/2018, 9:34 AMChanlito
12/03/2018, 9:48 AMfragments with apollo-server 2.0? to get additional fields even tho clients don't request for it?
Graphql-Yoga seems to have it working by default. Don't know how to get it to work with apollo-server.impowski
12/03/2018, 12:30 PMimpowski
12/03/2018, 12:30 PMleafyshark
12/03/2018, 1:23 PMleafyshark
12/03/2018, 2:19 PMAndres Montoya
12/03/2018, 3:36 PMGillinghammer
12/03/2018, 3:59 PMnuno
12/03/2018, 4:45 PMprisma.yml post-deploy hooks have wildcards? Something like ls /var/tmp/*/${env:PRISMA_SERVICE} doesn't work.Luke
12/03/2018, 6:05 PMAlex
12/03/2018, 6:18 PMhez
12/03/2018, 9:59 PMconnect a new 1-1 relationship between Entity_A and Entity_C, where a relationship between Entity_A and Entity_B already exists, without first explicitly calling disconnect on that relationship? My initial assumption was that connect should override in this case, and replace the old relationship with the new one... but that appears to not be the case.ian izaguirre
12/03/2018, 11:30 PMLuke
12/04/2018, 3:51 AMIndustrial
12/04/2018, 9:12 AMtype OHLCV @model {
id: ID! @unique
marketBase: String!
marketQuote: String!
period: String!
timestamp: DateTime!
open: Float!
high: Float!
low: Float!
close: Float!
volume: Float
}
I am importing this data from an external API and I am having troubles with ID. I would like the timestamp to be the primary key and I don't want an ID because I always have a timestamp, only do time based queries on this data and I want to have an upsertMany where I can just throw many of these in a query and update all of them.