mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-15 21:09:36 -06:00
* Fixes: #16292 - Properly restrict GraphQL queries for querys with pk set * Update netbox/netbox/settings.py * Apply schema adaptations across all apps * Extend GraphQL API tests --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
16 lines
395 B
Python
16 lines
395 B
Python
from typing import List
|
|
|
|
import strawberry
|
|
import strawberry_django
|
|
|
|
from .types import *
|
|
|
|
|
|
@strawberry.type(name="Query")
|
|
class CoreQuery:
|
|
data_file: DataFileType = strawberry_django.field()
|
|
data_file_list: List[DataFileType] = strawberry_django.field()
|
|
|
|
data_source: DataSourceType = strawberry_django.field()
|
|
data_source_list: List[DataSourceType] = strawberry_django.field()
|