System Information
- Strapi Version: 4.0.0-beta.12
- Operating System: Debian GNU/Linux 11 (bullseye) (Docker image: node:16-bullseye)
- Database: MySQL 8.0.19 (Docker image: bitnami/mysql:8.0.19-debian-10-r57)
- Node Version: v16.13.0
- NPM Version: 8.1.0
- Yarn Version: 1.22.15
I’m having some struggles with fetching Images that are saved against a model as an Uploads media type.
I have set permissions for both the Model and Uploads as findOne and findAll for Public and Authorized, and am receiving a FORBIDDEN response on GraphQL and 500 Unknown Column error over REST.
Model:
{
"kind": "collectionType",
"collectionName": "properties",
"info": {
"singularName": "property",
"pluralName": "properties",
"displayName": "Property",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "richtext"
},
"destination": {
"type": "relation",
"relation": "manyToOne",
"target": "api::destination.destination",
"inversedBy": "properties"
},
"images": {
"allowedTypes": [
"images",
"files",
"videos"
],
"type": "media",
"multiple": true
}
}
}
Responses:
GQL:
I receive the same responses after authentication as well.
And I am able to query Uploads with no issues both for Public and Authorized.
Any ideas?
Cheers!