SW Combine SDK
    Preparing search index...

    Galaxy planets resource

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Get planet by UID.

      Returns the Planet object directly — not wrapped in a Page.

      Parameters

      Returns Promise<Planet>

      The Planet entity.

      const planet = await client.galaxy.planets.get({ uid: '9:123' });
      console.log(planet.name); // access properties directly, not planet.data
    • List all planets (paginated)

      Parameters

      • Optionaloptions: { item_count?: number; pageDelay?: number; start_index?: number }

        Optional pagination parameters

      Returns Promise<Page<GalaxyPlanetListItem>>

      const planets = await client.galaxy.planets.list();
      const morePlanets = await client.galaxy.planets.list({ start_index: 51, item_count: 50 });