Skip to content

Commit

Permalink
fix(zli): _schema query in zli code should not use empty parens
Browse files Browse the repository at this point in the history
Fix also some tests
See vektah/gqlparser#292 and vektah/gqlparser#293

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
  • Loading branch information
andaaron committed Jun 4, 2024
1 parent 0c4c9c6 commit 26d519d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cli/client/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func CheckExtEndPointQuery(config SearchConfig, requiredQueries ...GQLQuery) err

schemaQuery := `
{
__schema() {
__schema {
queryType {
fields {
name
Expand Down
4 changes: 2 additions & 2 deletions pkg/extensions/search/userprefs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ func TestChangingRepoState(t *testing.T) {

gqlStarredRepos := `
{
StarredRepos() {
StarredRepos {
Results {
Name
StarCount
Expand All @@ -510,7 +510,7 @@ func TestChangingRepoState(t *testing.T) {

gqlBookmarkedRepos := `
{
BookmarkedRepos() {
BookmarkedRepos {
Results {
Name
StarCount
Expand Down

0 comments on commit 26d519d

Please sign in to comment.