Skip to content

Commit

Permalink
fix watch mode to watch anyof given dirnames
Browse files Browse the repository at this point in the history
  • Loading branch information
namenu committed Jul 29, 2024
1 parent cee15ff commit 41ef254
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ You can install this library using the Clojure CLI tool.
clojure -Ttools install-latest :lib io.github.green-labs/tools.graphql :as graphql
```

If you want to add it to your build system, add the following to the `:build` (or appropriate alias):

```edn
{io.github.clojure/tools.build {:mvn/version "0.10.3"}}
```

### Convert EDN Schema to SDL

When using the Lacinia library, you need to write the schema in EDN format. If you want to convert it to GraphQL SDL format, you can use the `edn2sdl` API.
Expand Down
2 changes: 1 addition & 1 deletion src/tools/graphql/stitch/watch.clj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
path-to-root
"tools.graphql.stitch.watch"
{:expression ["allof"
["dirname" (first dirs)]
(into ["anyof"] (mapv (fn [dir] ["dirname" dir]) dirs))
["suffix" "edn"]]}
(create-watcher opts)))

Expand Down

0 comments on commit 41ef254

Please sign in to comment.