From 45796b94a72583e47cef5faf4608288a3cae38e9 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Thu, 18 Apr 2019 10:46:33 -0400 Subject: [PATCH] Add type info to schema docs --- graphql_schema/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/graphql_schema/README.md b/graphql_schema/README.md index 2b9efaf8..dd3d76c1 100644 --- a/graphql_schema/README.md +++ b/graphql_schema/README.md @@ -104,6 +104,19 @@ Take the following GraphQL query: } ``` +And subsequently, its schema: + +```graphql +type AnimeQuery { + characters($title: String!): [Character!] +} + +type Character { + name: String + age: Int +} +``` + The field `characters` accepts a parameter, `title`. To reproduce this in `package:graphql_schema`, use `GraphQLFieldInput`: