github.com/Kartograf/gqlgen@v0.7.2/example/type-system-extension/README.md (about)

     1  # Type System Extension example
     2  
     3  https://facebook.github.io/graphql/draft/#sec-Type-System-Extensions
     4  
     5  ```
     6  $ go run ./server/server.go
     7  2018/10/25 12:46:45 connect to http://localhost:8080/ for GraphQL playground
     8  
     9  $ curl -X POST 'http://localhost:8080/query' --data-binary '{"query":"{ todos { id text state verified } }"}'
    10  {"data":{"todos":[{"id":"Todo:1","text":"Buy a cat food","state":"NOT_YET","verified":false},{"id":"Todo:2","text":"Check cat water","state":"DONE","verified":true},{"id":"Todo:3","text":"Check cat meal","state":"DONE","verified":true}]}}
    11  ```