Explorar el Código

16014 Update incorrect django-graphene reference and add link to filtering docs. (#16015)

* 16014 change ref from django-graphene to django-strawberry

* 16014 add references to filtering syntax

* 16014 remove graphene reference

* 16014 remove graphene reference

* Remove obsolete reference to Graphene

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
Arthur Hanson hace 1 año
padre
commit
56ea7b8714

+ 1 - 1
docs/development/adding-models.md

@@ -77,7 +77,7 @@ Create the following for each model:
 
 
 ## 13. GraphQL API components
 ## 13. GraphQL API components
 
 
-Create a Graphene object type for the model in `graphql/types.py` by subclassing the appropriate class from `netbox.graphql.types`.
+Create a GraphQL object type for the model in `graphql/types.py` by subclassing the appropriate class from `netbox.graphql.types`.
 
 
 Also extend the schema class defined in `graphql/schema.py` with the individual object and object list fields per the established convention.
 Also extend the schema class defined in `graphql/schema.py` with the individual object and object list fields per the established convention.
 
 

+ 2 - 2
docs/integrations/graphql-api.md

@@ -1,6 +1,6 @@
 # GraphQL API Overview
 # GraphQL API Overview
 
 
-NetBox provides a read-only [GraphQL](https://graphql.org/) API to complement its REST API. This API is powered by the [Graphene](https://graphene-python.org/) library and [Graphene-Django](https://docs.graphene-python.org/projects/django/en/latest/).
+NetBox provides a read-only [GraphQL](https://graphql.org/) API to complement its REST API. This API is powered by [Strawberry Django](https://strawberry-graphql.github.io/strawberry-django/).
 
 
 ## Queries
 ## Queries
 
 
@@ -47,7 +47,7 @@ NetBox provides both a singular and plural query field for each object type:
 
 
 For example, query `device(id:123)` to fetch a specific device (identified by its unique ID), and query `device_list` (with an optional set of filters) to fetch all devices.
 For example, query `device(id:123)` to fetch a specific device (identified by its unique ID), and query `device_list` (with an optional set of filters) to fetch all devices.
 
 
-For more detail on constructing GraphQL queries, see the [Graphene documentation](https://docs.graphene-python.org/en/latest/) as well as the [GraphQL queries documentation](https://graphql.org/learn/queries/).
+For more detail on constructing GraphQL queries, see the [GraphQL queries documentation](https://graphql.org/learn/queries/).  For filtering and lookup syntax, please refer to the [Strawberry Django documentation](https://strawberry-graphql.github.io/strawberry-django/guide/filters/).
 
 
 ## Filtering
 ## Filtering
 
 

+ 1 - 1
docs/plugins/development/graphql-api.md

@@ -2,7 +2,7 @@
 
 
 ## Defining the Schema Class
 ## Defining the Schema Class
 
 
-A plugin can extend NetBox's GraphQL API by registering its own schema class. By default, NetBox will attempt to import `graphql.schema` from the plugin, if it exists. This path can be overridden by defining `graphql_schema` on the PluginConfig instance as the dotted path to the desired Python class. This class must be a subclass of `graphene.ObjectType`.
+A plugin can extend NetBox's GraphQL API by registering its own schema class. By default, NetBox will attempt to import `graphql.schema` from the plugin, if it exists. This path can be overridden by defining `graphql_schema` on the PluginConfig instance as the dotted path to the desired Python class.
 
 
 ### Example
 ### Example