10595 extend graphql relationships (#10603)

* 9817 add graphql l2vpntermination assigned_object

* 9817 add graphql ipaddressassignment assigned_object

* 9817 ipan graphql gfk

* 9817 dcim graphql gfk

* 9817 dcim graphql gfk

* 9817 fix tests

* 10595 cable a_terminations to graphql

* 10595 add contacts to graphql

* 10595 move contacts to Provider
This commit is contained in:
Arthur Hanson
2022-10-11 09:26:18 -07:00
committed by GitHub
parent ffce5d968d
commit 9ca4c7315b
7 changed files with 255 additions and 21 deletions

View File

@@ -59,3 +59,10 @@ class TagsMixin:
def resolve_tags(self, info):
return self.tags.all()
class ContactsMixin:
contacts = graphene.List('tenancy.graphql.types.ContactAssignmentType')
def resolve_contacts(self, info):
return list(self.contacts.all())