Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Design: GraphQL #68

Open
hhstore opened this issue Jun 20, 2018 · 4 comments
Open

API Design: GraphQL #68

hhstore opened this issue Jun 20, 2018 · 4 comments
Labels

Comments

@hhstore
Copy link
Owner

hhstore commented Jun 20, 2018

graphql:

ORM:

@hhstore
Copy link
Owner Author

hhstore commented Jun 20, 2018

Python:

重要功能点:

pagination 分页:

relay:

示例 API 数据:


query {
  allStarships{
    
    totalCount,
    pageInfo{
      hasNextPage,
      hasPreviousPage
    }
    starships {
      name,
      model,
      crew,
      passengers,
    }
    
  }
  
}


## 注释:

{
  allStarships {
    totalCount
    starships {
      name
      model
    }
  }
}






########


query {
  
  person(personID: 1) {
    name,
    id,
    height,
    skinColor,
  }
  
  
  
  
  
  allPeople {
    people {
      name,
      id,
      gender
    }
  }
  
  
  
  allStarships{
    
    totalCount,
    pageInfo{
      hasNextPage,
      hasPreviousPage,
 
    }
    starships {
      name,
      model,
      crew,
      passengers,
      manufacturers
    }
    
  }
  
}


django + graphql:

flask + graphql:

@hhstore
Copy link
Owner Author

hhstore commented Jun 20, 2018

前端: react.js + grapql

@hhstore hhstore added Python python 3.5+ (3.6, 3.7) Design ReactJS VueJS and removed VueJS labels Sep 11, 2018
@hhstore hhstore mentioned this issue Mar 18, 2019
3 tasks
@hhstore hhstore changed the title Graphql Graphql API Design Mar 27, 2019
@hhstore
Copy link
Owner Author

hhstore commented May 5, 2019

golang + graphql:

项目实践:

@hhstore hhstore changed the title Graphql API Design API Design: GraphQL Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant