项目作者: DARK-art108

项目描述 :
🚀A Basic GraphQL API written in JS and uses GraphQL-Yoga.🧘‍♂️
高级语言: JavaScript
项目地址: git://github.com/DARK-art108/GraphQL-API.git
创建时间: 2020-12-05T16:23:23Z
项目社区:https://github.com/DARK-art108/GraphQL-API

开源协议:GNU General Public License v3.0

下载


GraphQL-API

A Basic GraphQL API written in JS and uses GraphQL-Yoga



Sample GraphQL API queries

  1. query{
  2. posts(){
  3. id
  4. title
  5. published
  6. body
  7. author{
  8. name
  9. }
  10. }
  11. me{
  12. id
  13. email
  14. name
  15. }
  16. post{
  17. id
  18. published
  19. }
  20. users{
  21. name
  22. id
  23. email
  24. age
  25. }
  26. }

Use filter in Query to Get Response

  1. query{
  2. posts(query: "g"){
  3. id
  4. title
  5. published
  6. body
  7. author{
  8. name
  9. }
  10. }
  11. me{
  12. id
  13. email
  14. name
  15. }
  16. post{
  17. id
  18. published
  19. }
  20. users{
  21. name
  22. id
  23. email
  24. age
  25. }
  26. }