GraphQL API Installation #452
Unanswered
khaledsawan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
GraphQL API 404 Error with Bagisto Docker Installation
Environment
Problem Description
I installed Bagisto using the official Docker repository. When trying to add GraphQL API following the documentation, I encountered several issues:
.envfile is not in/var/www/htmlinside the PHP-FPM container.envfile is in the.configsfolder on the host system/graphiqlreturns 404Steps to Reproduce
git clone https://github.com/bagisto/bagisto-dockercomposer require bagisto/graphql-apiphp artisan bagisto-graphql:install.envfile.envfrom.configsfolder to/var/www/html/graphiql- returns 404Current Status
php artisan route:list.envfile configured withGRAPHQL_ENDPOINT=http://localhost/graphqlhttp://myserver:8088/graphiqlExpected Behavior
GraphQL Playground should be accessible at
/graphiqlendpointActual Behavior
404 error when accessing
/graphiqlQuestions
.envfile be located in Docker installations?Additional Context
Using default Bagisto Docker configuration
GraphQL routes show as registered:
Tried clearing caches, restarting containers, and verifying configurations
Looking for guidance on Docker-specific setup for GraphQL API. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions