@strapi/plugin-graphql 5.4.0 → 5.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2246,7 +2246,7 @@ const contentType = ({ strapi: strapi2 }) => {
2246
2246
  return inputObjectType({
2247
2247
  name: filtersTypeName,
2248
2248
  definition(t) {
2249
- const validAttributes = Object.entries(attributes2).filter(
2249
+ const validAttributes = Object.entries(attributes2).filter(([attributeName]) => !contentTypes.isPrivateAttribute(contentType2, attributeName)).filter(
2250
2250
  ([attributeName]) => extension.shadowCRUD(contentType2.uid).field(attributeName).hasFiltersEnabeld()
2251
2251
  );
2252
2252
  const isIDFilterEnabled = extension.shadowCRUD(contentType2.uid).field("documentId").hasFiltersEnabeld();
@@ -2299,9 +2299,9 @@ const inputs = ({ strapi: strapi2 }) => {
2299
2299
  const isFieldEnabled = (fieldName) => {
2300
2300
  return extension.shadowCRUD(contentType2.uid).field(fieldName).hasInputEnabled();
2301
2301
  };
2302
- const validAttributes = Object.entries(attributes22).filter(([attributeName]) => {
2303
- return isWritableAttribute(contentType2, attributeName) && isFieldEnabled(attributeName);
2304
- });
2302
+ const validAttributes = Object.entries(attributes22).filter(
2303
+ ([attributeName]) => !contentTypes.isPrivateAttribute(contentType2, attributeName)
2304
+ ).filter(([attributeName]) => isWritableAttribute(contentType2, attributeName)).filter(([attributeName]) => isFieldEnabled(attributeName));
2305
2305
  if (modelType === "component" && isFieldEnabled("id")) {
2306
2306
  t.id("id");
2307
2307
  }