To understand this article you need to have some experience of PHP 7.4, Symfony 4, using services and Doctrine ODM with MongoDB. I tried to make code very simple and self explanatory to avoid adding more explanation about code. I also tried to cover more aspects of a real world project e.g. category and its related list products with pagination.
Lets start to setup a GraphQL server using overblog/GraphQLBundle bundle with symfony 4. We will divide it in 4 major parts:
- Installation and configuration of GraphQLBundle.
- Create documents and service to fetch the data.
- Create GraphQL types…
Software Architect | Developer | Application design | Database design | MongoDB | Golang | PHP | React | Kafka | RabbitMQ | Security Enthusiast