Noah
05/08/2019, 5:16 PMrolly
05/08/2019, 10:37 PMrolly
05/08/2019, 10:38 PMrolly
05/08/2019, 10:39 PMrolly
05/08/2019, 10:39 PMTeodoro Meyerhoff
05/08/2019, 11:52 PMJeff
05/09/2019, 12:36 AMborisgefter
05/09/2019, 4:59 AMMorten Bo Rønsholdt
05/09/2019, 6:20 AMThe first character of each value must be an uppercase letter.
. although when you auto-generate a schema.graphql all the enums are lowercase like this: enum DeviceOrderByInput {
apnsToken_ASC
apnsToken_DESC
createdAt_ASC
createdAt_DESC
fcmToken_ASC
fcmToken_DESC
id_ASC
id_DESC
}
why the inconsistency and any way to make it consistent?ahebwa49
05/09/2019, 6:21 AMahebwa49
05/09/2019, 6:21 AMbkstorm
05/09/2019, 7:01 AMcatalinmiron
05/09/2019, 8:15 AMrooneyK
05/09/2019, 11:43 AMprisma.sh
? currently stuck with this for an offline-installation: 2019-05-09T11:41:50.549Z environment { needsAuth: false }
2019-05-09T11:41:50.551Z client is local cluster: false
2019-05-09T11:41:50.555Z client Sending query to cloud api
2019-05-09T11:41:50.556Z client <https://api2.cloud.prisma.sh>
2019-05-09T11:41:50.556Z client {
me {
id
name
login {
email
}
}
}
2019-05-0
Jesper O. Christensen
05/09/2019, 1:18 PMCraig
05/09/2019, 1:44 PMquery foo {
foo(first: 1) {
id
bar(first: 10) {
id
}
}
}
Where the foo
schema has a property bar
whose value is [bar]
Craig
05/09/2019, 1:44 PMCraig
05/09/2019, 2:04 PMQuery
mezie
05/09/2019, 4:18 PMjdoyle112
05/09/2019, 8:19 PMjdoyle112
05/09/2019, 8:26 PMCraig
05/09/2019, 8:29 PMawait prisma.createFoo(args).catch(err => handleError(err))
Craig
05/09/2019, 8:30 PMjdoyle112
05/09/2019, 8:31 PMCoralynn Colombe
05/09/2019, 8:31 PMMax
05/10/2019, 3:51 AMcreateUser
mutation, a new database is being created called default_default
and the user is added there instead of the database I specified when connecting.
docker-compose.yml
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.23
restart: always
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: my-secret
databases:
default:
connector: mongo
uri: '<mongodb://host.docker.internal:27017/name-of-db>'
Adrian
05/10/2019, 4:05 AMDarryl
05/10/2019, 4:45 AMmezie
05/10/2019, 9:25 AMDarryl
05/10/2019, 9:36 AM{
"data": null,
"errors": [
{
"message": "Expected Iterable, but did not find one for field Mutation.signup.",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"signup"
]
}
]
}
I can fix it by wrapping my return (a token and user object) in an array but I’m not sure why it’s expecting an array.