Skip to content

Commit

Permalink
A few more readme tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnq committed Jan 27, 2019
1 parent ad00da0 commit 7be00aa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Define your GraphQL schema in Python3.6+ code using classes and type annotations

Graphotype is intended as a replacement for [Graphene](https://graphene-python.org/). However, graphotype (like graphene) depends on [graphql-core](https://github.com/graphql-python/graphql-core).

We recommend use of [mypy](http://mypy-lang.blogspot.com/) alongside this
library. With appropriate type annotations, mypy will check that your
We highly recommend use of [mypy](http://mypy-lang.blogspot.com/) alongside this
library. Using the type annotations you write for your schema, mypy can check that your
implementation satisfies the schema that you define, which rules out large
classes of programming errors when implementing your schema.

Expand Down Expand Up @@ -116,6 +116,9 @@ class Query(graphene.ObjectType):
def resolve_hello(self, info, argument):
return 'Hello ' + argument
</pre>

Here, Graphene requires you both specify `hello`'s type and write its resolver.

</td>
<td>
<pre lang="python">
Expand All @@ -126,6 +129,9 @@ class Query(graphotype.Object):
) -> str:
return 'Hello ' + argument
</pre>

With Graphotype, the definitions are one and the same.

</td>
</tr>

Expand Down

0 comments on commit 7be00aa

Please sign in to comment.