strapi

How to deploy Strapi backend to Heroku with Postgres addon?

左心房为你撑大大i 提交于 2021-01-07 03:55:38
问题 I have been using the official Strapi tutorial on how to deploy strapi to heroku with postgres and after following all the instructions, my heroku app is showing an error. However when I check the build logs, there are no errors and they show the build successful message. build logs 2020-08-17T15:48:19.744258+00:00 app[web.1]: npm ERR! 2020-08-17T15:48:19.744486+00:00 app[web.1]: npm ERR! Failed at the radio-darya-backend@0.1.0 start script. 2020-08-17T15:48:19.744753+00:00 app[web.1]: npm

strapi graphql limit only return 100 items even if I set limit to -1

让人想犯罪 __ 提交于 2020-12-13 04:55:08
问题 currently I have some problem with strapi graphql query. I can only query about 100 items max. here is my query: query StudioList { studios(limit: -1) { id slug name } } with or without limit always return 100 items. how do i query for more than 100? thanks.. 回答1: I found the solution: if you have plugins.js file in your strapi ./config folder, then add the following code: module.exports = { // graphql: { endpoint: '/graphql', shadowCRUD: true, playgroundAlways: false, depthLimit: 7,