Skip to content

Commit

Permalink
Merge pull request zino-hofmann#124 from SirKuryaki/hotfix/fix-docume…
Browse files Browse the repository at this point in the history
…ntation-example

📖 fixed Query and Mutation examples on README.md
  • Loading branch information
HofmannZ authored Oct 28, 2018
2 parents 5df3a41 + 2fac7fa commit e4f9217
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ Query(
builder: ({
bool loading,
var data,
String error,
Exception error,
}) {
if (error != '') {
return Text(error);
if (error != null) {
return Text(error.toString());
}
if (loading) {
Expand Down Expand Up @@ -185,7 +185,7 @@ Mutation(
runMutation, { // you can name it whatever you like
bool loading,
var data,
String error,
Exception error,
}) {
return FloatingActionButton(
onPressed: () => runMutation({
Expand Down

0 comments on commit e4f9217

Please sign in to comment.