Suhail
07/16/2020, 12:23 PMSuhail
07/16/2020, 12:50 PMMohammed alreai
07/16/2020, 5:42 PM.graphqlconfig
projects:
app:
schemaPath: "src/schema.graphql"
extensions:
endpoints:
default: "<http://localhost:4000>"
prisma:
schemaPath: "src/generated/prisma.graphql"
extensions:
prisma: prisma/prisma.yml
prisma.yml
endpoint: ${env:PRISMA_ENDPOINT}
datamodel: datamodel.prisma
secret: ${env:PRISMA_SECRET}
hooks:
post-deploy:
- graphql get-schema --project prisma
run scripts
"deploy": "prisma deploy --env-file .env"
not generate prisma.graphql why ????????Mohammed alreai
07/16/2020, 5:50 PMDavid Gwon
07/16/2020, 6:02 PMDavid Gwon
07/16/2020, 6:03 PMAshwin Kudva
07/16/2020, 7:15 PMprisma init
times out, for obvious reasons and it doesn't ask me if i have SSH credentials)Alex Vilchis
07/16/2020, 8:34 PMPeter
07/17/2020, 12:59 PMPeter
07/17/2020, 1:00 PMAshiqur Rahman
07/17/2020, 4:45 PMasync productsByKeyword(_, { keyword }) {
const products = await prisma.product.findMany({
orderBy: { createdAt: 'desc' },
});
const lowerCasedKeyword = keyword.toLowerCase();
const filteredProducts = products.filter((product) =>
product.title.toLowerCase().includes(lowerCasedKeyword)
);
return filteredProducts;
},
Nachiket Patel
07/17/2020, 4:49 PMat java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)
java.util.concurrent.RejectedExecutionException: Task slick.basic.BasicBackend$DatabaseDef$$anon$3@e390b3 rejected from slick.util.AsyncExecutor$$anon$1$$anon$2@c5b4995[Running, pool size = 4, active threads = 4, queued tasks = 1000, completed tasks = 545109]
Amin Bakhtiari Far
07/18/2020, 7:00 AMAmin Bakhtiari Far
07/18/2020, 7:05 AM# import input UserOrderByInput from './src/generated/schema.graphql'
# import input UserOrderByInput from './../../generated/schema.graphql'
These are the two different ways I tried to no avail.
Any suggestions would be highly appreciated.
And by the way this is how i instanciate GraphQLServer:
import mainSchema from "./gql/schema/schema.graphql"
const server = new GraphQLServer({
typeDefs: [mainSchema],
resolvers,
context(request) {
return {
request,
prisma,
Auth,
Policy
}
},
fragmentReplacements
})
Mohammed alreai
07/18/2020, 9:30 AMManthan Mallikarjun
07/18/2020, 7:38 PMprisma
to that folderManthan Mallikarjun
07/18/2020, 7:38 PMNoah
07/18/2020, 8:05 PMpradip Hajra
07/20/2020, 8:14 AMAshiqur Rahman
07/20/2020, 2:31 PMconst categories = [
{ name: 'search engine' },
{ name: 'language translation' },
{ name: 'home life' },
{ name: 'read' },
{ name: 'telecommutin' },
{ name: 'tool' },
{ name: 'learn' },
{ name: 'make money' },
];
const createManyCategories = categories.map((category) =>
prisma.category.create({
data: category,
})
);
I have created some categories like this,
I saw on prisma studio they are save as id 1,2,3....8
but when I want to query them from playground, I dont get any id.
How can I get it?Kervin Vasquez
07/20/2020, 8:02 PMAwey
07/21/2020, 12:18 PMmodel Post {
...
likes Int @default(0)
likedBy String[]
}
Neil Francis Nahid
07/21/2020, 2:45 PMAshiqur Rahman
07/22/2020, 5:06 AMBen Schwartz
07/22/2020, 6:39 PMChecking service definitions...
No change in service definitions since last check.
Alexander Lang
07/22/2020, 7:31 PMDali Rojas
07/23/2020, 1:11 AMJonathan
07/23/2020, 7:13 AMAl
07/23/2020, 12:55 PMJohn Cantrell
07/23/2020, 3:17 PM