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

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

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

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

    return RobotArmAPI.getJoints(domain, name)
  }
}
