This repository is a skeleton to start easily a php api based on graphql. It creates a simple api with a database based on mysql.
type Query {
hello: String
unitTypeById(id: String!): UnitType
unitTypes: [UnitType]!
}
you can simply run the solution with docker and docker-compose.
docker-compose up
This will create the database and feed it with sample data. You can open Apollo studion to test the api on http://localhost:3003/