Folder:
  description: Type for folders
  interfaces: [FileInterface]
  fieldResolver:
    - SilverStripe\AssetAdmin\GraphQL\Resolvers\FieldResolver
    - resolve
  fields:
    id: Int!
    created: String
    lastEdited: String
    owner: String
    parentId: Int
    title: String
    type: String
    category: String
    exists: Boolean
    name: String
    filename: String
    url: String
    canView: Boolean
    canEdit: Boolean
    canDelete: Boolean
    hasRestrictedAccess: Boolean
    visibility: String
    parents: '[FileInterface]'
    descendantFileCount: Int
    filesInUseCount: Int
    'children(filter: FileFilterInput)':
      type: '[FileInterface]'
      plugins:
        sorter:
          input: FolderChildrenSortFields
          resolver: [SilverStripe\AssetAdmin\GraphQL\Resolvers\FolderTypeResolver, sortChildren]
          fields:
            id: ID
            title: Title
            created: Created
            lastEdited: LastEdited
        paginate:
          resolver: [SilverStripe\GraphQL\Schema\DataObject\Plugin\Paginator, paginate]
