import { RobotArmAPI } from '../../../controllers/robot-arm-api'

export const robotArmGetPoseResolver = {
  async robotArmPose(_: any, { name }, context: any) {
    const { domain } = context.state

    // @deprecated replaced by robotArmGetPose
    return RobotArmAPI.getPose(domain, name)
  },

  async robotArmGetPose(_: any, { name }, context: any) {
    const { domain } = context.state

    return RobotArmAPI.getPose(domain, name)
  }
}
