strapi-plugin-comments icon indicating copy to clipboard operation
strapi-plugin-comments copied to clipboard

Endpoints are not available. 4.3.3

Open idesignzone opened this issue 2 years ago • 3 comments

After installing strapi Comments plugin endpoints are not available.

    "@strapi/plugin-graphql": "^4.3.3",
    "@strapi/plugin-i18n": "^4.3.3",
    "@strapi/plugin-users-permissions": "4.3.3",
    "@strapi/strapi": "4.3.3",
    "mysql": "2.18.1",
    "strapi-plugin-comments": "^2.1.7",
    "strapi-plugin-import-export-entries": "^1.5.0",
    "strapi-plugin-sitemap": "^2.0.8"

Example query

query {
  findAllFlat(
    relation: "api::page.page:1"
    filters: { content: { contains: "Test" } }
  ) {
    id
    content
    blocked
    threadOf {
      id
    }
    author {
      id
      name
    }
  }
}

Error: "Cannot query field "findAllFlat" on type "Query"."

Note: all Enspoints are checked in settings/users-permissions/roles

idesignzone avatar Aug 11 '22 07:08 idesignzone

Hello @idesignzone ,

can you please check the solution here: https://github.com/VirtusLab-Open-Source/strapi-plugin-comments/issues/117#issuecomment-1056750814

I'm going to update the docs with this trick.

cyp3rius avatar Aug 11 '22 07:08 cyp3rius

@cyp3rius relation: "api::post.post:1" is also different in Docs.

Docs: relation: "api::page.page:1" Working: relation: "api::post.post:1"

idesignzone avatar Aug 11 '22 07:08 idesignzone

@idesignzone relation you're mentioning is just an example which is valid in terms of Strapi UID generator for Collections :) Of course it depends how you're going to name your collection or single time.

cyp3rius avatar Aug 11 '22 08:08 cyp3rius