Skip to content

Commit 9ede154

Browse files
authored
Fix code block
Signed-off-by: Tony <tony@modyfi.io>
1 parent b86d9c0 commit 9ede154

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/flatbread/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,14 @@ for more information in Overrides, they adhere to the GraphQLFieldConfig outline
300300

301301
Accepts a function which takes in field names and transforms them for the GraphQL schema generation -- this is used internally to remove spaces but can be used for other global transforms as well
302302

303-
````js
303+
```js
304304
{
305305
...
306306
// replace all spaces in field names with an underscore
307307
fieldNameTransform: (fieldName) => field.name.replace(/\s/g,'_')
308308
...
309309
}
310+
```
310311

311312
# ☀️ Contributing
312313

0 commit comments

Comments
 (0)