GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
277 B

  1. package types
  2. import (
  3. "context"
  4. "git.aiterp.net/rpdata/api/models"
  5. )
  6. type fileResolver struct{}
  7. func (r *fileResolver) Size(ctx context.Context, file *models.File) (int, error) {
  8. return int(file.Size), nil
  9. }
  10. // FileResolver is a resolver
  11. var FileResolver fileResolver