Basic Graphql project
- Run json server
- new tab Run graphql server
yarn dev
yarn json:server
http://localhost:4000/graphql
http://localhost:3000/users
http://localhost:3000/companies
query findCompany{ apple:company(id:"1"){ ...companyDetails users { id, firstName } } google:company(id:"2"){ ...companyDetails users { id, firstName } } } fragment companyDetails on Company{ id name description } query findUser{ user(id:"48"){ ...userDetails company { name } } } fragment userDetails on User{ id firstName age }