Questions tagged [keystonejs]
742 questions
2
votes
1 answer
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 GraphQL filter.
My question is, if I am doing a…

arthur
- 539
- 1
- 7
- 21
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
2
votes
0 answers
Google Cloud Run CORS preflight error on zero instances
I try to run a Nodejs based keystonejs backend on google cloud run. And i let the service scale down to zero instances.
If i didn't hit the frontend for a while i run into a CORS preflight error
Access to fetch at 'https://***/admin/api' from origin…

golfo
- 85
- 5
2
votes
2 answers
KeystoneJS relationships, how can I connect using an array of ids
I am using the new version Keystone Next and I am trying to connect multiple items at once using an array of ids. It seems connect supports that, accepting an array of objects.
const FINISH_VOCABULARY_QUIZ_MUTATION = gql`
mutation…

Sava Vlad
- 57
- 1
- 6
2
votes
0 answers
NextJS and KeystoneJS website cant get GraphQL data (Error: No executable schema named 'public' is available)
I am currently making a NextJS website with KeystoneJS as the CMS. I can't find any good guides on how to set this up correctly so I have just jumped in. An issue that I am currently experiencing is that I am unable to request data from GraphQL. I…

James Hill
- 25
- 3
2
votes
1 answer
Keystone.js Content field type rendering best practice
I have a field with type Content which I'd like to render into html. From GraphQL endpoint, I receive a slate.js structure like
"contentExtended": {
"document":…

Igor Loskutov
- 2,157
- 2
- 20
- 33
2
votes
1 answer
Node app cannot connect to mongo image on my ubuntu instance
MongoServerSelectionError: getaddrinfo ENOTFOUND mongo
is the error I'm getting when I try to run docker-compose build.
This is my docker-compse.yml file
version: '3'
services:
app:
container_name: node-app
build: .
ports:
-…

jabusir
- 21
- 5
2
votes
2 answers
Nextjs 404s on buildManifest across multiple EC2 instances
Context: I have a simple Next.js and KeystoneJS app. I've made duplicate deployments on 2 AWS EC2 instances. Each instance also has an Nginx reverse proxy routing port 80 to 3000 (my apps port). The 2 instances are also behind an application load…

Jamie S
- 2,029
- 2
- 13
- 19
2
votes
1 answer
Perform an authenticated keystone.js / GraphQL API query
I am new to Keystone.js and GraphQL. So far I have been able to successfully execute the following API queries (taken from this page) via a POST request:
const SIGNIN = `mutation signin($identity: String, $secret: String) {
authenticate:…

Matt Saunders
- 3,538
- 2
- 22
- 30
2
votes
0 answers
How to add Keystonejs to an existing Express App
please I need help with Keystonejs, and I have just created a web app, now I want to create an admin platform for the App. after searching for the best CMS I found out that Keystonejs is more compatible with Heroku and Heroku is where I am hosting…

Chukwuma Kingsley
- 497
- 8
- 20
2
votes
0 answers
NodeJS .env variables (using dotenv) are not submitting to change -- cached?
I am working on a KeystoneJS project, currently running in development mode on NodeJS 12.14.0. About a week or ten days ago I noticed that even though I changed some environment variables in .env the changes were not reflected at run-time. I've…

Cerulean
- 5,543
- 9
- 59
- 111
2
votes
1 answer
How do I setup VSCode to run and debug KeystoneJS application
I am trying to setup VSCode to run and debug my KeystoneJS application.
I currently run the application using npm run dev or yarn dev - in package.json, the dev script is set like this:
"scripts": {
"dev": "cross-env NODE_ENV=development…

Leo
- 5,013
- 1
- 28
- 65
2
votes
1 answer
Strapi isOwner Policy implementation
Edit: Ultimately I switched to keystone js v5. I can do all this in 1/10 the time with better documentation.
I'm trying to figure out how to implement a Strapi isOwner policy.
They created official documentation and locked out the issue.
The only…

Diesel
- 5,099
- 7
- 43
- 81
2
votes
1 answer
Can you call "express()" more than once in an ExpressJS application? (Or: what exactly is "express()" doing?)
I've been using Express for a while but suddenly I'm unsure about something pretty basic --
I'm trying to add custom middleware to a KeystoneJS application -- specifically I'm adding a JWT token endpoint to a TinyMCE custom field
The custom field…

Cerulean
- 5,543
- 9
- 59
- 111