Skip to main contentIBM Video Streaming Developers

Query

The Query type represents all the queryable entry points to the API.

type Query {
    # Get all regions.
    regions(): [Region!]!
    # Get all servers.
    servers(): [Server!]!
    # Get server by ID.
    serverByID(
        # ID of queried server.
        id: ID!
    ): Server!
    # Get all locations.
    locations(): [Location!]!
    # Get location by ID.
    locationByID(
        # ID of queried location.
        id: ID!
    ): Location!
    # Get logged in user.
    me(): User!
}

Fields

regions: [Region!]!

Get all regions.

servers: [Server!]!

Get all servers.

serverByID: Server!

Get server by ID.

ARGUMENTTYPENULLABLELISTDESCRIPTION
idIDYESNOID of queried server.

locations: [Location!]!

Get all locations.

locationByID: Location!

Get location by ID.

ARGUMENTTYPENULLABLELISTDESCRIPTION
idIDYESNOID of queried location.

me: User!

Get logged in user.