As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [keystonejs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

How to model a multi-type relationship in KeystoneJS?

I have a project where i need to manage some data together with a small team. For this task i'm currently testing KeystoneJs as the CMS system and came to a use case that i can't solve out of the box. ...
CoS's user avatar
  • 21
0 votes
0 answers
18 views

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 ...
Matt's user avatar
  • 79
0 votes
0 answers
16 views

KeystoneJS API on EC2 with loadbalancer, logs me out on refresh

I have a web app with a KeystoneJS API. The webapp runs on Digital Ocean, the API is on an AWS EC2 instance with a load balancer (I had to add the load balancer to convert the API calls from https to ...
Sam's user avatar
  • 11
1 vote
0 answers
101 views

KeystoneJS 6 with NextJS 13. Image Upload to Local Storage

The app backend keystone server frontend next app using Apollo Client to work GraphQL magic. It's an ecommerce store where the client can do all CRUD application in the NextJS app. The Problem ...
William Chorski's user avatar
0 votes
0 answers
25 views

How to access a value for file metadata before upload in keystone schema? [duplicate]

I am currently using keystone js to build a small admin panel for my website i am trying to check the type of the file before adding it to the database so i have to access the mimetype to validate the ...
Ahmed Salah's user avatar
0 votes
0 answers
53 views

I'm trying to upload images via apollo client to keystone js and its have some errors

all necessary package installed. for backend I use Keystone js 3.79 for frontend GQL I use apollo client and for upload images I use apollo client upload. here is necessary information about my ...
Amirali Hossiny's user avatar
1 vote
0 answers
55 views

Keystone authenticatedItem query always returns null

After upgrading the Keystone core from version 1 to version 4.0.1 the authenticatedItem query always returns null, even though I am logged in. Logging in either through my Next frontend or through the ...
Simon's user avatar
  • 123
1 vote
0 answers
58 views

AuthenticatedItem returns null when I query from the frontend. Works as expected in the graphQL playground

So, I'm learning web development and this is my first project, I'm trying to break out of tutorial hell. I'm building a website for my family's small business, and I more or less know what I'm doing. ...
Mikel Sigler's user avatar
0 votes
0 answers
46 views

Keystonejs 6 CMS allowing any origin even after adding CORS custom config

I am working on my blog and chose Keystonejs 6(CMS) to host my content. The issue is, CMS allows any origin and serve requests. This document says you can whitelist origin but seems like it is not ...
Kalpesh Patel's user avatar
0 votes
0 answers
235 views

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.
Shiva kumar's user avatar
1 vote
1 answer
102 views

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, ...
Shreyes Srivastava's user avatar
1 vote
0 answers
30 views

How can I trace back "EPROTONOSUPPORT: protocol not supported :::3000" in node.js?

I am more than clueless at the moment. I am trying to start a keystonejs-6 app in production mode and the the app throws this error: Starting Keystone node:events:505 throw er; // Unhandled '...
LongHike's user avatar
  • 3,936
1 vote
1 answer
163 views

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(...
Palak Jadav's user avatar
  • 1,174
1 vote
1 answer
387 views

Updating the Prisma, GraphQL and DB schemas for a Keystone project in a non-interactive environment

I am building a github action event that is deploying a keystone.js server When the build is running, the user is being prompted to answer a question ➜ server git:(test-me) npm run build > ...
arthur's user avatar
  • 499
0 votes
1 answer
99 views

Content versioning in Keystone 6

In a previous project in Keystone 4, I was able to work with content versioning. That is, if I were to update a content entity (e.g BlogPost), I would have the possibility to toggle between the ...
ptas's user avatar
  • 3
0 votes
0 answers
50 views

Creation of Keystone app fails on postinstall

I tried to create a new app using the following command. It fails with an error message on the postinstall step (below). Does anyone know please what's wrong? Command: npx create-keystone-app Error: ....
Jakub Janiš's user avatar
2 votes
4 answers
172 views

KeystoneJS 6 - graphQLSchemaExtension - No session

I have an issue with graphQLSchemaExtension I don’t have active session on my custom mutations.. An example below of the beginning of custom mutation And my graphQLSchemaExtension declaration And my ...
user1189847343's user avatar
0 votes
0 answers
36 views

How to implement Heroku background processes in Node

I'm very new to Heroku and node so have a basic question just about how to implement background processes in a graphql server app I have hosted on Heroku. I have a working graphql server written in ...
twoy's user avatar
  • 43
0 votes
1 answer
78 views

Keystone 6 js: checkbox null values

Keystone js 6 does not allow me to add checkbox field, that looks the following way // checkbox_field: checkbox({ label: 'Checkbox Field', access: { read: ()=> true, update: ()=> true } }), I ...
Daria's user avatar
  • 15
0 votes
0 answers
89 views

How can I create the array of strings field type in Keystone.js 6?

How can I create the array of strings field type in Keystone.js 6? Array of strings isn't provided in the keystone 6 js collection of field types, does it mean that I have to use Custom Field option ...
Daria's user avatar
  • 15
0 votes
1 answer
26 views

How can I use item

I don't know how to access the item object in KeystoneJS 6. I have 5 lists: User Blog Post Comment Label Let's focus on the Blog list. I want to only allow a User to update and delete his/her Blog ...
Timo Martinson's user avatar
1 vote
1 answer
1k views

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 ...
Mehrez Kanzari's user avatar
0 votes
0 answers
70 views

GraphQL Filtered Query Returning Data to network, but getting an error afterwards

I've got a query that uses a where filter to grab only the user-created fundraisers. The query is below: export const MY_FUNDRAISERS_QUERY = gql` query MY_FUNDRAISERS_QUERY($skip: Int = 0, $first: ...
Cjmaret's user avatar
  • 142
2 votes
1 answer
85 views

KeystoneJS `filter` vs `Item` list access control

I am trying to understand more in depth the difference between filter and item access control. Basically I understand that Item access control is, sort of, higher order check and will run before the ...
arthur's user avatar
  • 499
0 votes
1 answer
145 views

Keystone 6, redirect after save

i'm using keystone6 and I tried several days to find out a way to redirect after save or update action. Using hooks with useNavigate() it's not working or I'm not using it properly. hooks: { ...
Gogo Bubbles's user avatar
2 votes
1 answer
111 views

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....
Benjamin Nathan Rudolph's user avatar
2 votes
1 answer
58 views

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 ...
Tony Barnes's user avatar
  • 2,626
0 votes
1 answer
255 views

Custom actions on Keystone JS 6

I try to implement add custom actions for duplicate content (for example Product). Imagine you have a product and want to create new but very similar and you want just click Clone or Duplicate button ...
Chingiz Mamedov's user avatar
0 votes
0 answers
267 views

How to use createAuth from @keystone-6/auth in embed Keystone + Next Js app

I am trying to set up embed Keystone with next.js, I want to set up Authentication and Access Control. I followed documentation from here I can’t use createAuth from @keystone-6/auth import { ...
Meet Patel's user avatar
0 votes
0 answers
82 views

Server-side request to upload file using Keystone

I have a Keystone list schema that has a field of type 'File'. So, a GraphQL mutation to update entity has an Upload GraphQL type for argument that corresponds to this field. I need to execute update ...
AntonAL's user avatar
  • 16.4k
3 votes
1 answer
2k views

Any workaround to the "Could not find prisma-fmt binary" error when installing KeystoneJS?

I'm running into this issue when trying to install KeystoneJS (tried locally with node and npm up to date and in a node:16-alpine docker image). > keystone-app@1.0.0 postinstall > keystone ...
Camopy's user avatar
  • 105
1 vote
1 answer
357 views

Keystone session cookie only working on localhost

Edit: After investigating this further, it seems cookies are sent correctly on most API requests. However something happens in the specific request that checks if the user is logged in and it always ...
Simon's user avatar
  • 123
0 votes
1 answer
489 views

Apollo `useMutation()` stuck loading inside Next.js component

The following form component in Next.js submits without errors but never completes the mutation. Instead it get's stuck in the loading state. import React, { useState } from "react"; import {...
remainstheday's user avatar
3 votes
1 answer
477 views

Keystone crashes inside Turborepo

Keystone fails to find dependencies while running yarn build inside a new Turborepo project. Steps to reproduce Install Turborepo in a new project npx create-turbo@latest navigate to the apps folder ...
remainstheday's user avatar
0 votes
2 answers
306 views

Cache problem when adding data sources to the apollo config option in Keystone 5

When executing a request to the server for the second time, the result that returns is always the cached one, even if the first request mutated the entity. here is the dataSources.js file that imports ...
Daniel Bellmas's user avatar
1 vote
1 answer
89 views

Can i use one domain for two website? About GCP and Firebase

I would like to use firebase hosting to host the frontend React web, and my "keystone" backend hosting on GCP VM instance, can i use the same domain for those two websites? Thank you~
Calcoding's user avatar
0 votes
1 answer
191 views

How exactly do fixtures work with `createItems` in Keystone JS?

I've been running around trying to create some base fixture for the base repository on given models but I can't seem to find how. I'm fairly new to node, even more to Keystone. Most repos or tutorials ...
rzc96's user avatar
  • 1
1 vote
1 answer
490 views

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'...
Alejandro Rodriguez P.'s user avatar
2 votes
1 answer
486 views

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. ...
Brook MG's user avatar
  • 581
4 votes
1 answer
241 views

How to create a foreign key with NOT NULL in Keystonejs 6?

I wish to know how to create a foreign key with NOT NULL in Keystonejs 6 Schema file. I use postgresQl AND ORM Prisma. I can't create a relationship field with isRequired = true, which means NOT NULL. ...
Тимур Сафаров's user avatar
0 votes
1 answer
595 views

In Keystone js v6, can `withAuth` have multiple listKeys, so users can authenticate against different lists?

Out of the box, Keystone's auth is straight forward and nice and I want to continue using it, however I would like to set up different schema for the users of my front end than the standard Users ...
Cheekumz's user avatar
1 vote
2 answers
907 views

Setting a dynamic default value for a field in Keystone (for a url slug)

Im totally new to both GraphQL and the concept of headless CMS having only ever built my own REST API's from scratch. I've built out a basic API using Keystone v6 and lets say I have a Schema for ...
Cheekumz's user avatar
1 vote
2 answers
343 views

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....
user avatar
0 votes
1 answer
768 views

Not able to create docker image of keystonejs because it contains lot of package.json and packages inside it

I am trying to create docker image of this official public repo of keystonejs https://github.com/keystonejs/keystone But it contains lot of packages inside it and each package contains package.json ...
ss-ss-v1's user avatar
1 vote
0 answers
201 views

Keystonejs not sendng cross domain cookies - production deployment Heroku -login not working

I am deploying the application on Heroku, but not able to login while looking at the problem the keystone-session is rejected so added the secure and samesite attribute,but the issue remains same as ...
Umair Khan's user avatar
1 vote
2 answers
784 views

How to seed/upload images in KeystoneJS 6?

Using the example here, if I then add an image field to Post: // schema.ts import { list } from '@keystone-6/core'; import { select, relationship, text, timestamp } from '@keystone-6/core/fields'; ...
cnorris's user avatar
  • 548
0 votes
1 answer
180 views

Error trying to reorder items within another list in Keystone 6

I'm using KeystoneJS v6. I'm trying to enable functionality which allow me to reorder the placement of images when used in another list. Currently i'm setting up the image list below, however I'm ...
Greg Jones's user avatar
1 vote
1 answer
169 views

Storing additional values on a many-to-many relationship in KeystoneJS

I have a many-to-many relationship between my Post and Tag lists and I want to record the date when a tag is added to a post. I can't see how to add this field when defining a many-to-many ...
Jerome 's user avatar
  • 2,359
3 votes
0 answers
528 views

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 <input type="file" multiple required onChange={onChange} ...
DEV's user avatar
  • 425
0 votes
2 answers
667 views

KeystoneJS login via GraphQL mutation

I am trying to login to a Keystone 5 GraphQL API. I have setup the app so that I can login via the Admin Console, but I want to login from a Svelte application. I keep finding references to the code ...
PrestonDocks's user avatar
  • 4,711

1
2 3 4 5
15