if you want get inv Level Id and locations by GraphQL, you can get it by product variant request:
variants(first:10){
edges {
node {
inventoryItem{
inventoryLevels(first:2) {edges {node {id location {id}}}}
}
}
}
}