Questions tagged [keystonejs6]
24 questions
4
votes
1 answer
Unable to configure Keystone 6 with MongoDB
I'm trying to set up Keystone using MongoDB as the database. Upon running keystone-next, the command errors out with the following error message: Error: Invalid db configuration. Please specify db.provider as either "sqlite" or "postgresql" at…

patternina
- 155
- 1
- 10
3
votes
2 answers
Generate KeyStone.js 6 schema from modified Prisma schema
I had a project that was using the latest version of Prisma (3.9.1) and was planning to place a CMS on top of it. Keystone seemed like a very good fit as they already use Prisma internally. Unfortunately I couldn't modify the Prisma schema because…

Brook MG
- 601
- 10
- 20
3
votes
0 answers
How to upload Image using graphQL update mutation in Keystone6?
I am trying to upload user profile image using useMutation
But I am getting 400 error while uploading.
here is my code.
File Input
onChange
function onChange({ target: { validity, files }…

DEV
- 455
- 4
- 18
2
votes
1 answer
Schema design for B2B site with varying products using Keystone 6
I am building a B2B wholesale site using Nextjs and Apollo Client for the front-end, with Keystonejs running the backend. This question is more for the backend and setting up the schema for Keystonejs.
This site is based off of a tutorial from Wes…
2
votes
1 answer
Keystone 6 custom schema - mutation not working - Maximum call stack size exceeded
I'm trying to extend a mutation in Keystone 6, but having a lot of trouble just getting the standard DB update to work in a custom mutation resolver; Using the standard Keystone boilerplate and added a new collection/list.
Following the examples…

Tony Barnes
- 2,625
- 1
- 18
- 29
1
vote
1 answer
how can I use a keystonejs v6 inside a nestjs app?
Suppose I already have a Keystone setup installed in a folder, and now I want to extend this app by adding some REST API endpoints to it.
The standard way to achieve this is by using extendExpressApp, but it doesn't work when all my development…

Mohammad Reza Esmaeilzadeh
- 1,313
- 18
- 31
1
vote
1 answer
Add data automatically to a table B when you add data to table A
Can I update a table in Keystone when I add data to another table?
For example: I have a table named Property where I add details of the property. As soon as I enter the data into this Property table, another table, named NewTable, should…

Shreyes Srivastava
- 11
- 3
1
vote
1 answer
keystonejs form a multi-column unique constraint
How to form a unique constraint with multiple fields in keystonejs?
const Redemption = list({
access: allowAll,
fields: {
program: relationship({ ref: 'Program', many: false }),
type: text({ label: 'Type', validation: { isRequired: true…

Palak Jadav
- 1,202
- 1
- 11
- 23
1
vote
1 answer
An error occurred handling a request for the Admin UI: Error: Prisma error: The table `main.User` does not exist in the current database
I tried to deploy a keystone app to Heroku and I did it but while I tried to open the app I got the following error:
An error occurred handling a request for the Admin UI: Error: Prisma error: The table main.User does not exist in the current…

Mehrez Kanzari
- 11
- 3
1
vote
1 answer
In Keystone JS v6, is there a way to store users without password being a required option?
I want to offer my users password-based authentication but also the possibility to log in with Oauth providers. I've looked into the Next-Auth adapters to get a reference for creating the schema and I'm also aware that there's an OpenSource package…

Alejandro Rodriguez P.
- 778
- 5
- 7
1
vote
2 answers
Not able to understand the goal of public repo of KEYSTONEJS official repository and can't create docker image
I tried hard to understand the goal of this keystonejs project https://github.com/keystonejs/keystone which is based on lot of modules in it and lot of package.json in it.
it does contain root package.json as well.
it is based on react 17 and node…
user18045207
1
vote
1 answer
Static file serving in Keystonejs 6
I am using Keystonejs 6 and some models contain image type fields. When fetching this data I get a src of that image which points to /public/images/myimage.png. This link successfully gets loaded with admin panel logged in (session created) but when…

ConductedClever
- 4,175
- 2
- 35
- 69
0
votes
1 answer
Add logged in user ID to foreign key field automatically in KeystoneJS
I'm creating an application in KeystoneJS with the documentation provided for that framework. So, in my application, there are 2 tables, one is user and the other one is post. So, I would like to know, when I'm creating a post by logging into the…

mastercordy
- 161
- 1
- 2
- 16
0
votes
0 answers
How to change the height and width of document editor in KeystoneJs 6?
I am new to keystonejs, and creating a post page using the below code.
but the size of the document editor is too small and whenever i add a component block, it kind of jumps.
Its hard to edit on the small editor window, clicking on the "expand"…

Matt
- 79
- 1
- 4
0
votes
0 answers
How to add social logins to Keystone 6 application
I want to authenticate in my Keystone application using GitHub and Gmail as SSO providers.
I have tried to use @opensaas/keystone-nextjs-auth package but I want to do it manually.