lqshow
10/8/2017 - 12:23 PM

GraphQl Query

查询

curl -X POST \
-H "Content-Type: application/graphql" \
-d 'query RootQueryType { count }' \
http://localhost:3000/graphql

GraphQL 查询还可以省略掉 query RootQueryType 前缀

curl -X POST \
-H "Content-Type: application/graphql" \
-d '{ count }' \
http://localhost:3000/graphql