mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Add GraphQL for users and groups
This commit is contained in:
12
netbox/users/graphql/schema.py
Normal file
12
netbox/users/graphql/schema.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import graphene
|
||||
|
||||
from netbox.graphql.fields import ObjectField, ObjectListField
|
||||
from .types import *
|
||||
|
||||
|
||||
class UsersQuery(graphene.ObjectType):
|
||||
group = ObjectField(GroupType)
|
||||
groups = ObjectListField(GroupType)
|
||||
|
||||
user = ObjectField(UserType)
|
||||
users = ObjectListField(UserType)
|
||||
Reference in New Issue
Block a user