#trustfall #adapter

filesystem-trustfall-adapter

Filesystem Trustfall adapter

2 releases

new 0.1.1 Feb 8, 2025
0.1.0 Apr 15, 2024

#530 in Filesystem

Download history 7/week @ 2024-12-07 1/week @ 2024-12-14 124/week @ 2025-02-08

124 downloads per month

MIT license

14KB
326 lines

Filesystem Trustfall Adapter

A Filesystem Trustfall adapter.

NOTE: This adapter is not maintained by the Trustfall maintainers.

Spec

type RootSchemaQuery {
    Path(path: String!): Path!
}

interface Path {
    path: String!

}

type Folder implements Path {
    path: String!
    children: [Path!]
}

interface File implements Path {
    path: String!
    size: Int!
    extension: String!
    """
    SHA256 hash of the file
    """
    Hash: String!
}

TODO

  • Add examples
  • improve docs
  • Add tests
  • Example queries

Dependencies

~13MB
~302K SLoC