Skip to content

Commit 08453b5

Browse files
authored
Remove displayed "```csharp" in Unsafe Type Creation code example (#7138)
1 parent a730ab0 commit 08453b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

website/src/docs/hotchocolate/v13/defining-a-schema/dynamic-schemas.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,12 @@ The unsafe way to create types, as the name implies, bypasses some of the standa
8484

8585
The `CreateUnsafe` method allows you to create types directly from a `TypeDefinition`.
8686

87-
````csharp
8887
```csharp
8988
var typeDefinition = new ObjectTypeDefinition("DynamicType");
9089
// ... populate typeDefinition ...
9190
9291
var dynamicType = ObjectType.CreateUnsafe(typeDefinition);
93-
````
92+
```
9493

9594
Using `CreateUnsafe` method for type creation can be a complex task as it involves operating directly on the type definition.
9695
This allows for a lot of flexibility, but it also requires a deeper understanding of the Hot Chocolate type system.

0 commit comments

Comments
 (0)