diff options
author | Michael Muré <batolettre@gmail.com> | 2020-03-22 13:53:34 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-03-28 17:13:28 +0100 |
commit | 314fcbb2293d869c33d6a76aedd148aedff6561d (patch) | |
tree | 05386ddf08d7e1c2947a6fc6cf2fbd44efa19eaf /graphql | |
parent | 5e4dc87ffec7f87bbf3ebfcf256777ad773e8450 (diff) | |
download | git-bug-314fcbb2293d869c33d6a76aedd148aedff6561d.tar.gz |
query: no need for an ast package
Diffstat (limited to 'graphql')
-rw-r--r-- | graphql/resolvers/repo.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/graphql/resolvers/repo.go b/graphql/resolvers/repo.go index dde1dcf6..639e8f90 100644 --- a/graphql/resolvers/repo.go +++ b/graphql/resolvers/repo.go @@ -9,7 +9,6 @@ import ( "github.com/MichaelMure/git-bug/graphql/graph" "github.com/MichaelMure/git-bug/graphql/models" "github.com/MichaelMure/git-bug/query" - "github.com/MichaelMure/git-bug/query/ast" ) var _ graph.RepositoryResolver = &repoResolver{} @@ -29,7 +28,7 @@ func (repoResolver) AllBugs(_ context.Context, obj *models.Repository, after *st Last: last, } - var q *ast.Query + var q *query.Query if queryStr != nil { query2, err := query.Parse(*queryStr) if err != nil { @@ -37,7 +36,7 @@ func (repoResolver) AllBugs(_ context.Context, obj *models.Repository, after *st } q = query2 } else { - q = ast.NewQuery() + q = query.NewQuery() } // Simply pass a []string with the ids to the pagination algorithm |