Also replace typing.List with list in graphql-api.md

This commit is contained in:
Markku Leiniö 2024-04-17 11:13:40 +03:00
parent 1b15b381bb
commit 7eb1eb32ac

View File

@ -8,7 +8,6 @@ A plugin can extend NetBox's GraphQL API by registering its own schema class. By
```python
# graphql.py
from typing import List
import strawberry
import strawberry_django
@ -28,7 +27,7 @@ class MyQuery:
@strawberry.field
def dummymodel(self, id: int) -> DummyModelType:
return None
dummymodel_list: List[DummyModelType] = strawberry_django.field()
dummymodel_list: list[DummyModelType] = strawberry_django.field()
schema = [