verifyStationAccess
Verifies a user has access to a given station in input parameters.
directive @verifyStationAccess(
stationIdPath: String = "stationId"
) on FIELD_DEFINITION
Arguments
verifyStationAccess.stationIdPath ● String scalar references
Denotes input parameters path to the station ID to verify.
Use dots to denote levels in query/mutation input parameters. E.g., for an example query:
input RecommendedShowsInput {
country: CountryCode
stationId: UUID
viewerId: UUID!
}
recommendedShows(input: RecommendedShowsInput!): RecommendedShows
Use the directive:
@verifyStationAccess(stationIdPath: "input.stationId")