Open hhstore opened 6 years ago
ref: https://dev-blog.apollodata.com/graphql-vs-rest-5d425123e34b
POST: http://www.systango.com/blog/graphql-python-beauty-simplicity-beast-application/
mutation
for creating new records
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
}
}
}
graphql:
ORM:
Build a GraphQL server with any database
TypeORM is an ORM that can run in NodeJS, Browser, Cordova, PhoneGap, Ionic, React Native and Electron platforms