diff --git a/README.md b/README.md index bb03df2..ffdf3da 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # GraphQLVapor -***WARNING***: This package is in v0.x beta. It's API is still evolving and is subject to breaking changes in minor version bumps. +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FGraphQLSwift%2Fgraphql-vapor%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/GraphQLSwift/graphql-vapor) +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FGraphQLSwift%2Fgraphql-vapor%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/GraphQLSwift/graphql-vapor) + +> ***WARNING***: This package is in v0.x beta. It's API is still evolving and is subject to breaking changes in minor version bumps. A Swift library for integrating [GraphQL](https://github.com/GraphQLSwift/GraphQL) with [Vapor](https://github.com/vapor/vapor), enabling you to easily expose GraphQL APIs in your Vapor applications. @@ -42,6 +45,7 @@ import GraphQLVapor import Vapor // Define your GraphQL schema +// To construct schemas, consider using `Graphiti` or `graphql-generator` let schema = try GraphQLSchema( query: GraphQLObjectType( name: "Query", @@ -83,6 +87,3 @@ Response: ``` See the `RouteBuilder.graphql` function documentation for advanced configuration options. - -To build a type-safe GraphQL schema, consider [`graphql-generator`](https://github.com/GraphQLSwift/graphql-generator) or -[`Graphiti`](https://github.com/GraphQLSwift/Graphiti)