---
title: "gql 6"
description: "```gql query { host { read: directory(path: \".\") { file(path: \".markdownlint.yaml\") { contents } } home: envVariable(name: \"HOME\") { value } pwd: envVariable(name: \"PWD\") { value } write: directory(path: \".\") { withNewFile(path: \"greeting\", contents: \"Hello Dagger!\") { export(path: \".\") } } } } ```"
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/gql-6
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:25:03.397Z
license: CC-BY-4.0
attribution: "gql 6 — Claudary (https://claudary.paisolsolutions.com/skills/gql-6)"
---

# gql 6
```gql query { host { read: directory(path: ".") { file(path: ".markdownlint.yaml") { contents } } home: envVariable(name: "HOME") { value } pwd: envVariable(name: "PWD") { value } write: directory(path: ".") { withNewFile(path: "greeting", contents: "Hello Dagger!") { export(path: ".") } } } } ```

## Overview

```gql
query {
  host {
    read: directory(path: ".") {
      file(path: ".markdownlint.yaml") {
        contents
      }
    }
    home: envVariable(name: "HOME") {
      value
    }
    pwd: envVariable(name: "PWD") {
      value
    }
    write: directory(path: ".") {
      withNewFile(path: "greeting", contents: "Hello Dagger!") {
        export(path: ".")
      }
    }
  }
}
```

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/gql-6) · https://claudary.paisolsolutions.com
