A simple graphql server to test the power of grapql
- GraphQL
- GraphQL Server (Apollo)
- Node 7.5
- Yarn
- Objection as ORM
- Knex for DB migrations
- SQLite as db monitor
git clone git@github.com:Rafaell416/graphql-server.git
cd graphql-server
yarn install
touch db/db.sqlite
to create the empty file SQLite will use.yarn run db:migrate
para crear las tablas en la DByarn run db:seed
para llenar la DB con datos de rellenoyarn start
para iniciar el servidor
Following these steps, now at http://localhost:3000/graphiql you should see GraphiQL, and http://localhost:3000/graphql is the endpoint you will use with your clients.
Example Query
query {
cursos {
id
titulo
descripcion
profesor {
id
nombre
nacionalidad
}
}
}