graphql strawberry shake console app sample
My sample code for using strawberry shake to connect to a graphql service
https://github.com/mitzenjeremywoo/graphl-client-strawberry-shake
Some important things to note:
- graphqlrc.json
- schema.graphql
- schema.extensions.graphql
- *.graphql - In the example, the filename is not important but having GetSession query in important as the code make use of the field return in the query.
As shown in the example here
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query GetSessions { | |
sessions(order: { title: ASC }) { | |
nodes { | |
title | |
abstract | |
duration | |
} | |
} | |
} |
Comments