-
open your terminal, access your project location. example :
cd movie-graphql/
-
install all dependencies
npm install
-
run this command below, then press ENTER :
npm run dev
-
Open GraphiQL
localhost:4000/graphql
-
Select all movie :
{
movies{
title
genre
}
}
- select all actor :
{
actors{
name
gender
}
}
- select all actor with their movie :
{
actors{
name
movies{
title
}
}
}