1// Package models contains the various GraphQL data models
2package models
3
4import (
5 "github.com/git-bug/git-bug/cache"
6 "github.com/git-bug/git-bug/repository"
7)
8
9type ConnectionInput struct {
10 After *string
11 Before *string
12 First *int
13 Last *int
14}
15
16type Repository struct {
17 Repo *cache.RepoCache
18}
19
20// GitCommitMeta is a wrapper around a CommitMeta that includes the Repo,
21// to keep the repo context in sub-resolvers.
22type GitCommitMeta struct {
23 Repo *cache.RepoCache
24 repository.CommitMeta
25}