#trustfall #adapter

filesystem-trustfall-adapter

Filesystem Trustfall adapter

1 unstable release

0.1.0 Apr 15, 2024

#868 in Filesystem

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
~297K SLoC