Skip to content

Commit ddc8479

Browse files
authoredAug 23, 2021
Change PaginationAmount IntType registration (#2985)
1 parent 003e815 commit ddc8479

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎website/src/docs/hotchocolate/api-reference/migrate-from-10-to-11.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -620,15 +620,17 @@ downstream schemas.
620620
services
621621
.AddGraphQLServer()
622622
.AddRemoteSchema("SomeSchema")
623-
.AddType(new IntType())
624-
.AddType(new IntType("PaginationAmount"))
623+
.ConfigureSchema(x =>
624+
x.AddType(new IntType())
625+
.AddType(new IntType("PaginationAmount")))
625626
.AddMergedDocumentRewriter(
626627
d => (DocumentNode)new PagingAmountRewriter().Rewrite(d, null));
627628

628629
services
629630
.AddGraphQL("SomeSchema")
630-
.AddType(new IntType())
631-
.AddType(new IntType("PaginationAmount"));
631+
.ConfigureSchema(x =>
632+
x.AddType(new IntType())
633+
.AddType(new IntType("PaginationAmount")));
632634
```
633635

634636
**PagingAmountRewriter:**

0 commit comments

Comments
 (0)
Please sign in to comment.