Bartosz Ciach
05/03/2019, 10:34 AMFraser
05/03/2019, 10:41 AMprilutskiy
05/03/2019, 11:07 AMprilutskiy
05/03/2019, 11:07 AMprilutskiy
05/03/2019, 11:08 AMHebilicious
05/03/2019, 11:30 AMJosef Henryson
05/03/2019, 11:47 AMJosef Henryson
05/03/2019, 11:48 AMnuno
05/03/2019, 11:53 AMJamesJ
05/03/2019, 12:18 PMBartosz Ciach
05/03/2019, 2:09 PMUnknown directive "id".GraphQL: Validation
. I am using VS codegopidon
05/03/2019, 2:34 PMCraig
05/03/2019, 4:37 PMfirst, last, skip, after, before
) on the GraphQL schema/resolvers? Tried doing something like resources: (parent, args, ctx, info) => prisma.resources(args, info),
in my resolver and type Query { resources: [Resource] }
in my schema but the graphQL playground does not show any filter/sort options. Do I need to do something like type Query { resources(first, last, blah, blah...): [Resource] }
in my schema for each query?Gaurav
05/03/2019, 6:12 PMmanagementApiSecret: ${PRISMA_MANAGEMENT_API_SECRET}
in docker-compose.yml
(have deployed prisma in docker on AWS using prisma deploy on fargate tutorial and connected to RDS)
Question: I need to upgrade server to 1.32
. How to do something like docker-compose ... -e .env
? (I was reading comments which suggest that prisma deploy -e .env
takes care of this; that's why I didn't noticed this when deploying)
Docs: docker-compose pull -e.env
won't work similarly. [https://www.prisma.io/docs/prisma-server/deployment-environments/docker-rty1/]Chaitanya
05/03/2019, 7:00 PMbkstorm
05/04/2019, 9:35 AMprisma deploy -e .env.prod
but an error show up:
▸ prisma:4000/my-app/prod is not a valid endpoint. It must start with http:// or https://
`prisma.yml`'s content:
endpoint: ${env:PRISMA_END_POINT}
datamodel:
- common.graphql
generate:
- generator: typescript-client
output: ../src/generated/prisma-client/
hooks:
post-deploy:
- prisma generate --endpoint ${env:PRISMA_END_POINT}
- npx nexus-prisma-generate --client ./src/generated/prisma-client --output ./src/generated/nexus-prisma
`.env.prod`'s content:
PRISMA_END_POINT=prisma/my-app/prod
prisma
is the name of a service in docker-compose.yml
So does it mean I should create a network for my services, then assign static ip for each service? Something like that:
version: "3"
services:
my-app:
restart: always
build: ./m-app/
networks:
- my-net
prisma:
image: prismagraphql/prisma:1.32.2
restart: always
networks:
my-net:
ipv4_address: 192.168.0.2
networks:
my-net:
driver: bridge
config:
- subnet: "192.168.0.0/24"
Noah
05/04/2019, 1:12 PMJames
05/04/2019, 2:48 PMJames
05/04/2019, 2:52 PMJeff
05/04/2019, 6:09 PMAndres Montoya
05/04/2019, 7:08 PMdsimowitz
05/04/2019, 11:53 PMtype Company implements Node {
id: ID!
date_founded: Int
description: String
image: CompanyImage
country: Country
name: String!
slug: String!
website: String
jobs(
where: JobWhereInput
orderBy: JobOrderByInput
skip: Int
after: String
before: String
first: Int
last: Int
): [Job!]
}
can I query all companies and get the number of jobs associated with each company? Something kind of like the following...
# Write your query or mutation here
query {
companies {
name
jobsConnection {
aggregate {
count
}
}
}
}
Sean Urgel
05/05/2019, 1:21 AMdsimowitz
05/05/2019, 1:38 AMv
05/05/2019, 3:12 AMvue-apollo
, and I need to get many `group`s from one query. I can't make a groups
query because it would error completly even if only one group failed. How do I generate a query that gets all groups individually?v
05/05/2019, 3:13 AMquery getGroups($auth: [GroupAuth!]!) {
id1: group(auth: $auth[0]) {
id
}
id2: group(auth: $auth[1]) {
id
}
}
Fran Dios
05/05/2019, 7:53 AMprisma introspect
, the generated schema has field: [Type]
instead of the original field: [Type!]!
. Did the !]!
become optional?Kevin Miller
05/05/2019, 11:02 AMAlejandro Moro
05/05/2019, 4:20 PMJeff
05/05/2019, 6:45 PM