1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Update plugins documentation

This commit is contained in:
jeremystretch
2022-03-11 15:47:52 -05:00
parent 49e5268d48
commit 6d05a4117a
4 changed files with 27 additions and 1 deletions

View File

@ -9,10 +9,11 @@ A plugin can extend NetBox's GraphQL API by registering its own schema class. By
```python
# graphql.py
import graphene
from netbox.graphql.types import NetBoxObjectType
from netbox.graphql.fields import ObjectField, ObjectListField
from . import filtersets, models
class MyModelType(graphene.ObjectType):
class MyModelType(NetBoxObjectType):
class Meta:
model = models.MyModel