Strapi is an open-source Node.js headless CMS built on top of Koa. It's frontend-agnostic and claims to not be an MVC framework. It auto-generate RESTful endpoints and has support for GraphQL and WebSockets.
Questions tagged [strapi]
2734 questions
8
votes
2 answers
How do I add an OR condition in a graphql where statement?
I cannot get a WHERE statement working with an 'OR' condition in Strapi via graphql playground.
I would like to return all results where either the 'title' OR 'content' fields contain the search_text.
I have tried the following:
articles(where: {…

Tommy K
- 81
- 1
- 1
- 2
8
votes
2 answers
Send emails using Strapi
I have not understood how the Strapi email plugin works.:(
If I only use Strapi-Sendmail, how do I send a mail from Localhost over port 25 so that I can test locally if my Strapi sends mail?
Why does the recipient("to") have to be "admin@strapi.io"?…

Benjamin Reeves
- 553
- 3
- 6
- 19
8
votes
5 answers
CRON Example for Strapi
Hi I was wondering If anyone got examples of using Cron Schedule functions on Strapi: https://strapi.io/documentation/3.x.x/configurations/configurations.html#functions
like sending email, accessing the strapi config, etc.

Miguel Puig
- 141
- 1
- 4
- 7
8
votes
1 answer
Strapi is not loading the Collections from existing MongoDB hosted on Digital Ocean
I am creating a New Application using Strapi and I have tried to connect it with my MongoDB which is hosted on Digital Ocean but unfortunately Strapi is not able to fetch the collections from existing MongoDB. Here, I am mentioning the complete…

Nishi Gaba
- 661
- 8
- 28
8
votes
3 answers
Strapi routes return 404 Not found
I have a problem where all routes in my API return 404 Not found. I followed the Pull from Docker Hub section at strapi/strapi-docker.
What I did, apart from running the images, was creating a new Content type called post containing three fields. If…

Patrik Bäckström
- 117
- 1
- 1
- 6
7
votes
7 answers
Strapi V4 populate dynamic zones media not populating
Data fields appear to be populating ok by using the suggested patch below, however, media fields are not populating.
Tried the following with no luck -
* http://localhost:1337/api/pages?populate=*
*…

Rodrigo Rubio
- 1,686
- 2
- 16
- 26
7
votes
3 answers
Media field is not showing up in api response of strapi v4
I have a media field in my collection of strapi (v4) server named Picture but it doesn't come up in api response when I request localhost:1337/api/products.

Ammar Uppal
- 469
- 4
- 6
7
votes
1 answer
No relational fields in response Strapi v4
I have a problem where none of the relational fields are present in the responses after fetching my data. When I look to the schema of one of my schemas with a relation, I see that the relational fields are present in the attributes object. But…

Talha Bayansar
- 105
- 1
- 6
7
votes
1 answer
Strapi CMS, Heroku error: no pg_hba.conf entry for host
Three months ago, I created an Strapi App that has deployed on Heroku, and everything works fine. I used macOS 10.13.6 and node 14.15.4 for the local environment
The configuration of database was created inside a file named database.js which located…

Yues Hafiyan
- 97
- 1
- 7
7
votes
1 answer
getting spawn node ENOENT in pm2
I was trying to setup strapi on AWS
I was following the instructions listed on their site: https://strapi.io/documentation/3.0.0-beta.x/deployment/amazon-aws.html
Here is my folder structure
And this would be my ecoystem.config.js…

Alwaysblue
- 9,948
- 38
- 121
- 210
7
votes
6 answers
Strapi- Having issues with making AWS S3 my file upload provider
I'm following the directions on the Strapi site here: https://strapi.io/documentation/v3.x/plugins/upload.html#using-a-provider
Here is my plugin.js file located at ./config/plugins.js
module.exports = ({ env }) => ({
upload: {
provider:…

ajohnson10209
- 644
- 1
- 6
- 14
7
votes
2 answers
Pm2 error while deploying Strapi App on DigitalOcean
I've been following the official docs for deploying a Strapi app onto Digital ocean, but I'm having trouble setting up pm2.
It starts the app for a second, and then shows
status: errored
there's no script.js to run the app, but when I cd to…

web master
- 255
- 2
- 8
7
votes
1 answer
How to alter the id in Strapi
Currently I am working on Strapi for the first time, but want to connect the collection types based on id, but when I removed one for example [id 4] and added new one. It will create an [id 5]. So I thought this was a mistake I made and removed it…

Frontend employee
- 719
- 2
- 12
- 26
7
votes
1 answer
Docker Gatsby Strapi produces ECONNREFUSED 127.0.0.1:1337 error
I have been working with Strapi and Gatsby through the command line to get a website and CMS up and running, similar to this set up - https://strapi.io/blog/building-a-static-website-using-gatsby-and-strapi. All works well and I'm ready to move onto…

TGMNF
- 161
- 1
- 4
7
votes
1 answer
Strapi custom auth controller
I'm using Strapi for my API and Back office. Everything works fine except one thing: I can't figure out how to override the controller that is used for the forgot password feature. I've tried to follow the documentation, especially this page :…

Ghislain
- 115
- 1
- 5