Source code for ace.centralize.graphql.selections.reference

"""
Predefined SelectionSets for reference data (contributors and anchors).
"""

from ace.core.graphql import SelectionSet


[docs] class ContributorSelections: """Reusable selection sets for Contributor fields.""" STANDARD = SelectionSet( "contributorId", nested={ "contributorTypeId": SelectionSet("contributorTypeId", "contributorTypeName"), } )
[docs] class AnchorSelections: """Reusable selection sets for Anchor fields.""" MINIMAL = SelectionSet( "id", "name", ) STANDARD = SelectionSet( "id", "name", nested={ "properties": SelectionSet( "name", nested={ "value": SelectionSet( "name", nested={"translations": SelectionSet("languageId", "name")}, ), } ), } )