Skip to content

Commit de8de7f

Browse files
authored
Update README.md
1 parent 263352d commit de8de7f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ this is graphql-codegen plugin to generate Flutter artemis hooks.
66

77
### Install
88

9-
```
9+
```bash
1010
npm i graphql-codegen-flutter-artemis-hooks
1111
```
1212

1313
### Edit codegen.yml
1414

1515
you need to specify path for generated file by artemis
1616

17-
```
17+
```yml
1818
schema: your_schema_file.graphql
1919
documents: './your_project/**/*.graphql'
2020
generates:
@@ -31,7 +31,7 @@ then run the plugin!!
3131
3232
for instance, if you have defined GraphQL as following
3333
34-
```
34+
```graphql
3535
query ExampleQuery {
3636
objects {
3737
id
@@ -48,7 +48,7 @@ mutation TestMutation($variable: String!) {
4848

4949
and using this plugin would generate code like this.
5050

51-
```
51+
```dart
5252
import 'package:flutter/material.dart';
5353
import 'package:flutter_hooks/flutter_hooks.dart';
5454
import 'package:graphql_flutter/graphql_flutter.dart';
@@ -111,7 +111,7 @@ TestMutation$MutationReturnType useTestMutationQuery<DataType>(BuildContext cont
111111

112112
Then you can use the generated type-safe hooks as following
113113

114-
```
114+
```dart
115115
class PageWidget extends HookWidget {
116116
const PageWidget({Key key}) : super(key: key);
117117

0 commit comments

Comments
 (0)