Skip to content

Commit c7b65e7

Browse files
Updated language settings on field paths page (#35)
1 parent 2a5fb27 commit c7b65e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/controllers/field-paths.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_position: 2
99

1010
Let's think about this query:
1111

12-
```ruby
12+
```graphql title="Sample Query"
1313
query {
1414
groceryStore {
1515
bakery {
@@ -36,7 +36,7 @@ Knowing what we know about GraphQL's requirements, we need to create types for t
3636

3737
This is where `virtual graph types` come in. Using a templating pattern similar to what we do with REST queries we can create rich graphs with very little boiler plate. Adding a new arm to your graph is as simple as defining a path to it in a controller.
3838

39-
```csharp
39+
```csharp title="Sample Controller"
4040
[GraphRoute("groceryStore")]
4141
public class GroceryStoreController : GraphController
4242
{

0 commit comments

Comments
 (0)