Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bagisto 2 is not compatible with bagisto-graphql latest version #250

Open
BrainClickAdsTeam opened this issue May 6, 2024 · 7 comments
Open

Comments

@BrainClickAdsTeam
Copy link

Hello everyone,

I am trying to install bagisto graphql admin api to existing bagisto 2 project, I have followed the docs here: https://devdocs.bagisto.com/1.x/graphql-admin-api/installation.html

And the graphql package is installed successfully with no issues, but when i try to send a login request as in the docs here:
https://devdocs.bagisto.com/1.x/graphql-admin-api/getting-started-with-the-api.html#introduction

Then i am getting this error:
Failed to find class Webkul\CMS\Models\CmsPage in namespaces [App, Webkul\GraphQLAPI\Models] for directive @paginate.

Anyone has a solution for this issue?

Thanks.

@Anmol-Chauhan
Copy link
Collaborator

Anmol-Chauhan commented May 8, 2024

Hi @BrainClickAdsTeam, I have checked and there is no such issue if you use Bagisto v2.0.0 and GraphQL v2.0.0, all is working fine. APIs are not compatible with the latest version of bagisto, The Team is working on it and will provide the updated APIs soon.

Screenshot from 2024-05-08 11-21-15
Screenshot from 2024-05-08 11-20-41
Screenshot from 2024-05-08 11-20-22

@BrainClickAdsTeam
Copy link
Author

I am using bagisto v2.0.0, but i think the issue is in the graphql installation, can please provide me with the installation guide about installing graphql admin apis for bagisto, because event the login request is not working for me

@BrainClickAdsTeam
Copy link
Author

BrainClickAdsTeam commented May 9, 2024

should i follow this doc? https://devdocs.bagisto.com/1.x/graphql-admin-api/installation.html

because i didn't find any other docs about the graphql admin api except this

@Anmol-Chauhan
Copy link
Collaborator

@BrainClickAdsTeam, Please follow the guide link:- https://github.com/bagisto/headless-ecommerce

@BrainClickAdsTeam
Copy link
Author

I have followed the guide many times and still facing same issue, can i ask if the graphql play ground is working for you? can perform the same request with no issues from graphql play ground?

@BrainClickAdsTeam
Copy link
Author

I have followed these steps exactly and still facing the same error:

  1. downloaded the bagisto v2.1.2 as zip file from main bagisto website
  2. run composer install
  3. connect bagisto to existing database
  4. now bagisto front end and dashboard are working fine
  5. after that i have visited this url: https://github.com/bagisto/headless-ecommerce
  6. and installed the package
  7. then i have added the graphql servive provider one time in the beginning of the modules array and once in the end of the modules array
  8. then i have added the middleware to the middlewares array in the kernel file
  9. after that i have updated the auth.php file in the config as requested, but i have noticed something
    Screenshot 2024-05-09 163831

Screenshot 2024-05-09 164101

  1. After that i have executed the install command for the graphql api
    php artisan bagisto-graphql:install

  2. And it did not worked, Am i missing anything?

@Anmol-Chauhan
Copy link
Collaborator

@BrainClickAdsTeam,
https://prnt.sc/kX5oWzd_3CeE
Please try Bagisto v2.0.0 and still face any issues then raise your Ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants