timm
06/06/2018, 8:29 PMJames Bellamy
06/06/2018, 11:50 PMtimm
06/06/2018, 11:55 PMsongs: [Song!]! @relation(name: "ArtistOnSong", onDelete: SET_NULL)
in my data model, does the [Song!]!
enforce that I must have at least one Song in an array type, or just an array type?emma
06/07/2018, 9:39 AMnikolasburk
user
06/07/2018, 9:44 AMuser
06/07/2018, 9:44 AMemma
06/07/2018, 9:44 AMweakky
06/07/2018, 9:46 AMShop
model that would have it’s own products/orders/customers etc, etc (like Shopify is doing)), or to split all shops into their own prisma/db, and when the user choose his shop (on sign-in), store a link on the User
model that would contain let’s say the graphql-endpoint of the chosen shop ?siyfion
06/07/2018, 10:29 AMgraphql-yoga
for handling thrown errors, and returning them to the client in a nicely formatted way? A la Apollo Server 2.0?Corjen
06/07/2018, 11:19 AMdocker-compose.yml
. The /management
endpoint is protected, but my projects aren't. How do I enforce that the management secret is checked on queries and mutations on one of the projects? Seems like the public/private keypair authentication is deprecated since 1.8?glennreyes
06/07/2018, 1:20 PMfaker
. As far as I understood prisma seed
supports NDF files only for now. Since there’s no createManyX
my idea was to create a script that runs createX
multiple times but that’s way less than ideal.
What’s common practice for seeding the DB with fake data out of a JS object using faker
?hamdi
06/07/2018, 1:42 PMhez
06/07/2018, 3:08 PMtype Thing {
thingID: String!
createdAt: DateTime!
updatedAt: DateTime!
thingProfile: ThingProfile
}
type ThingProfile {
thingID: String
thingPropertyA: String
thingPropertyB: String
}
type Mutation {
createThingProfile(
thingID: String
thingProfile: ThingProfile
): Thing
}
And I want to add a profile
to a thing
that was not initialized with a profile
...using a mutation on the thing
.... how would I do this? This feels like it should be possible...but I'm stumbling on the confighez
06/07/2018, 3:08 PMid: ID!
hez
06/07/2018, 3:15 PMlucasbento
06/07/2018, 4:10 PMbeforeCreate
or afterQuery
Dorkside
06/07/2018, 5:13 PMDorkside
06/07/2018, 5:13 PM[Metrics] Warning: no metrics will be recorded.
java.lang.RuntimeException: ProjectHelper: Could not resolve project with id: graphql$default
at scala.sys.package$.error(package.scala:27)
at com.prisma.subscriptions.helpers.ProjectHelper$.$anonfun$resolveProject$1(ProjectHelper.scala:13)
at scala.util.Success.$anonfun$map$1(Try.scala:251)
at scala.util.Success.map(Try.scala:209)
at scala.concurrent.Future.$anonfun$map$1(Future.scala:287)
at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:91)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:81)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:91)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:43)
at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Anyone know what this means ? I'm guessing it's something I may have initiliazed wrong but I just can't seem to find what.jaybauer
06/07/2018, 6:01 PMfeed(where: { input: 'String' }) { id }
for example, how would I structure this to return a result for multiple possible input
values? Something like feed(where: { input: 'String' OR 'OtherString' }) { id }
.alec
06/07/2018, 6:41 PMnoahdavis
06/07/2018, 6:45 PMhez
06/07/2018, 6:53 PMhez
06/07/2018, 6:53 PMnull
for nested objectsweakky
06/07/2018, 7:01 PMNo Node for the model Shop with value cji4szvj4000h08543s2qehgk for id found.
? The shopId IS valid, and so is the product id.harrisrobin
06/07/2018, 8:46 PMharrisrobin
06/07/2018, 8:46 PMuser
06/07/2018, 8:49 PMqsys
06/07/2018, 9:29 PMbrant
06/07/2018, 9:33 PMnow
?