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
313 B

  1. package resolver
  2. import "git.aiterp.net/rpdata/api/model/story"
  3. // TagResolver for the Tag graphql type
  4. type TagResolver struct{ T story.Tag }
  5. // Kind resolves Tag.kind
  6. func (r *TagResolver) Kind() string {
  7. return r.T.Kind
  8. }
  9. // Name resolves Tag.name
  10. func (r *TagResolver) Name() string {
  11. return r.T.Name
  12. }