Omar
04/09/2020, 4:14 AMOmar
04/09/2020, 4:14 AMSacha Weatherstone
04/09/2020, 5:44 AMschema.mutationType({
definition(t) {
t.crud.createOneUser()
},
})
But I don't want the option of specifying the users id in the mutation.wuichen
04/09/2020, 6:12 AMNicola Nardella
04/09/2020, 7:36 AMSacha Weatherstone
04/09/2020, 8:24 AMschema.objectType
or even a specific model?Sachin Jani
04/09/2020, 12:53 PMpeter
04/09/2020, 8:06 PMRaluca Fleseriu
04/09/2020, 8:24 PMERROR: Token is issued in the future (iat).
{
"data": {
"addProject": null
},
"errors": [
{
"locations": [
{
"line": 2,
"column": 9
}
],
"path": [
"addProject"
],
"code": 3015,
"message": "Token is issued in the future (iat).",
"requestId": "local:ck8t82idw1fl90725fogs8xdy"
}
],
"status": 200
}
Get in touch if you need help: <https://slack.prisma.io>
I still have this issue, have no clue where to start looking. Do you have at least some resurces to point me to?
https://prisma.slack.com/archives/CA491RJH0/p1586339152379000iandjx
04/10/2020, 8:36 AMenum Tech {
JAVASCRIPT
PYTHON
PHP
TYPESCRIPT
GO
JAVA
RUBY
ANDROID
SWIFT
}
model Repository {
id Int @default(autoincrement()) @id
githubRepositoryId Int @unique
name String
description String
owner User @relation("CreatedReposByUser", fields: [id], references: [id])
collaborators User[] @relation("ReposByUser", references: [id])
techStack Tech[]
}
how do i make a mutation query in prisma nexus to create a repository? stuck with techstack enumfriebetill
04/10/2020, 9:27 AMlatestStory
in Prisma 1 possible? I’ve only seen this with strings, but with complex data types, Prisma tells me that there must be a relation. But I want to implement the resolver to access the stories and get the latest story without changing the underlying database. I have to do this for backward compatibility.
type User {
id: ID! @unique
stories: [Story]! @relation(name: "stories")
latestStory: Story
}
type Story {
id: ID! @unique
text: String!
author: User! @relation(name: "stories", link: INLINE)
createdAt: DateTime! @createdAt
}
If it is not possible, is it possible with prisma 2?sash
04/10/2020, 10:52 AMschema.prisma
, `schema.graphql`and schema.js
, in v1 it was possible to use a graphql-schema
and reference the types from there, is that still the case in v2?Joshua Waurich
04/10/2020, 11:18 AMjt
04/10/2020, 4:49 PMSeppe Snoeck
04/10/2020, 4:50 PM.prisma
vscode extention?Samrith Shankar
04/10/2020, 4:50 PMpeter
04/10/2020, 4:51 PMpeter
04/10/2020, 4:54 PMGiorgio Delgado
04/10/2020, 5:53 PMtechnicallynick
04/10/2020, 5:55 PMAlan
04/10/2020, 9:37 PMschema.ts
is generated? Do I have to write it or it is generated automatically? (example with: https://github.com/prisma/prisma-examples/blob/master/typescript/graphql-apollo-server/src/schema.ts)Adriano Resende
04/10/2020, 9:41 PMprisma.category.findMany({
where: {
basket: {
where: {
food: {
where: {
id: true
}
}
}
}
}
})
Adriano Resende
04/10/2020, 9:42 PMtypes
.Adriano Resende
04/10/2020, 10:35 PMAlan
04/11/2020, 1:09 AMError: ENOENT: no such file or directory, open '/dist/schema.graphql'
How can I include my file schema.graphql
in the dist
folder (compiled)?Khoa Le
04/11/2020, 4:36 AMSacha Weatherstone
04/11/2020, 6:18 AMnexus-plugin-prisma
outside of the normal context? i.e. in <http://server.express.post|server.express.post>()
I have tried to include it seperately in my dependencies, but keeps throwing and initialization error on building.Ugogo
04/11/2020, 11:10 AMgraphql-yoga
as a server to interact with prisma
So locally I have the following endpoints available, and my client is using the first one
• localhost:4000
: graphql-yoga
• localhost:4466
: prisma
Nothing crazy so far, I was even able to deploy all of this on Heroku (yay)
The Heroku endpoint is "connected" to prisma
, but my client needs the graphql-yoga
endpoint, how can I find it?
Dunno if it's clear enough 😓
Thanks 🙏Sebastien La Duca
04/11/2020, 3:33 PMinclude
parameter perform nested reads, as in get fields of a related document?Charpell
04/11/2020, 4:28 PM