mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 14:59:07 +00:00
Merge pull request #11670 from strapi/v4/graphql-fix-media-relations-querying
[V4] GraphQL fix media attributes queries
This commit is contained in:
commit
9b07a911f8
@ -150,12 +150,6 @@ module.exports = context => {
|
||||
const type = attribute.multiple
|
||||
? naming.getRelationResponseCollectionName(fileContentType)
|
||||
: naming.getEntityResponseName(fileContentType);
|
||||
const resolverPath = `${naming.getTypeName(contentType)}.${attributeName}`;
|
||||
const resolverAuthScope = `${fileUID}.find`;
|
||||
|
||||
extension.use({
|
||||
resolversConfig: { [resolverPath]: { auth: { scope: [resolverAuthScope] } } },
|
||||
});
|
||||
|
||||
builder.field(attributeName, { type, resolve, args });
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user