File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ this is graphql-codegen plugin to generate Flutter artemis hooks.
66
77### Install
88
9- ```
9+ ``` bash
1010npm i graphql-codegen-flutter-artemis-hooks
1111```
1212
1313### Edit codegen.yml
1414
1515you need to specify path for generated file by artemis
1616
17- ```
17+ ``` yml
1818schema : your_schema_file.graphql
1919documents : ' ./your_project/**/*.graphql'
2020generates :
@@ -31,7 +31,7 @@ then run the plugin!!
3131
3232for instance, if you have defined GraphQL as following
3333
34- ```
34+ ` ` ` graphql
3535query ExampleQuery {
3636 objects {
3737 id
@@ -48,7 +48,7 @@ mutation TestMutation($variable: String!) {
4848
4949and using this plugin would generate code like this.
5050
51- ```
51+ ``` dart
5252import 'package:flutter/material.dart';
5353import 'package:flutter_hooks/flutter_hooks.dart';
5454import 'package:graphql_flutter/graphql_flutter.dart';
@@ -111,7 +111,7 @@ TestMutation$MutationReturnType useTestMutationQuery<DataType>(BuildContext cont
111111
112112Then you can use the generated type-safe hooks as following
113113
114- ```
114+ ``` dart
115115class PageWidget extends HookWidget {
116116 const PageWidget({Key key}) : super(key: key);
117117
You can’t perform that action at this time.
0 commit comments