Skip to content

[Bug] graphql schema mismatch between docs and actual implementation #172

@akhildevelops

Description

@akhildevelops

Describe the bug
Schema for querying different cpu types as mentioned in docs is

query cpuTypes {
  cpuTypes {
    id
    displayName
    manufacturer
    cores
    threadsPerCore
    groupId
  }
}

In actual implementation the graphql schema is (extracted from firefox dev tool console):

query CpuFlavors {
  countryCodes
  dataCenters {
    id
    name
    listed
    __typename
  }
  cpuFlavors {
    id
    groupId
    groupName
    displayName
    minVcpu
    maxVcpu
    ramMultiplier
    diskLimitPerVcpu
    __typename
  }
}

There's no info on dploying a CPU pod in docs, but there's a graphql query (extracted from firefox devtools):

{
    "operationName": "Mutation",
    "variables": {
        "input": {
            "instanceId": "cpu3c-2-4",
            "cloudType": "SECURE",
            "containerDiskInGb": 5,
            "deployCost": 0.06,
            "dataCenterId": null,
            "networkVolumeId": null,
            "startJupyter": true,
            "startSsh": true,
            "templateId": "runpod-ubuntu",
            "volumeKey": null,
            "ports": "22/tcp"
        }
    },
    "query": "mutation Mutation($input: deployCpuPodInput!) {
  deployCpuPod(input: $input) {
    id
    imageName
    env
    machineId
    machine {
      podHostId
      __typename
    }
    __typename
  }
}"
}

Please update the graphql docs with latest changes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions