Skip to content

Commit

Permalink
fix: Remove typo in introspection query
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFaucherre committed Aug 10, 2023
1 parent 828c70a commit 048befc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/orb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewClient(config *settings.Config) (Client, error) {

clientVersion, err := detectClientVersion(gql)
if err != nil {
return &v1Client{gql}, nil
return nil, err
}

switch clientVersion {
Expand Down Expand Up @@ -74,7 +74,7 @@ type OrbIntrospectionResponse struct {

func orbQueryHandleOwnerId(gql *graphql.Client) (bool, error) {
query := `query IntrospectionQuery {
_schema {
__schema {
queryType {
fields(includeDeprecated: true) {
name
Expand Down
2 changes: 1 addition & 1 deletion cmd/orb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3713,7 +3713,7 @@ func mockOrbIntrospection(isValid bool, token string, tempSettings *clitest.Temp

requestStruct := map[string]interface{}{
"query": `query IntrospectionQuery {
_schema {
__schema {
queryType {
fields(includeDeprecated: true) {
name
Expand Down

0 comments on commit 048befc

Please sign in to comment.