Make sure you use Xcode 11+.
SwiftGraphQLCLI
and SwiftGraphQLCodegen
.
To learn more about Swift Package Manager, check out the official documentation.
swift-graphql
. If you are using any custom scalars, you should create a configuration file called swiftgraphql.yml
and put in data-type mappings as a key-value dictionary like this. Keys should be GraphQL types, and values should be SwiftGraphQL Codecs.
You can also run swift-graphql --help
to learn more.
You can read more about Mint here.