From 0152d4f21a0b204df5a0f6df5c398a29734f3e68 Mon Sep 17 00:00:00 2001 From: Richard Musiol Date: Fri, 21 Oct 2016 11:23:11 +0200 Subject: [PATCH] introspection: currently no descriptions and deprecations --- internal/exec/introspection.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/internal/exec/introspection.go b/internal/exec/introspection.go index 6b6a750247c..cfbe203969d 100644 --- a/internal/exec/introspection.go +++ b/internal/exec/introspection.go @@ -217,7 +217,7 @@ func (r *typeResolver) Name() *string { } func (r *typeResolver) Description() string { - panic("TODO") + return "" } func (r *typeResolver) Fields(args struct{ IncludeDeprecated bool }) []*fieldResolver { @@ -275,7 +275,7 @@ func (r *fieldResolver) Name() string { } func (r *fieldResolver) Description() string { - panic("TODO") + return "" } func (r *fieldResolver) Args() []*inputValueResolver { @@ -287,11 +287,11 @@ func (r *fieldResolver) Type() *typeResolver { } func (r *fieldResolver) IsDeprecated() bool { - panic("TODO") + return false } -func (r *fieldResolver) DeprecationReason() string { - panic("TODO") +func (r *fieldResolver) DeprecationReason() *string { + return nil } type inputValueResolver struct { @@ -302,7 +302,7 @@ func (r *inputValueResolver) Name() string { } func (r *inputValueResolver) Description() string { - panic("TODO") + return "" } func (r *inputValueResolver) Type() *typeResolver { @@ -321,15 +321,15 @@ func (r *enumValueResolver) Name() string { } func (r *enumValueResolver) Description() string { - panic("TODO") + return "" } func (r *enumValueResolver) IsDeprecated() bool { - panic("TODO") + return false } -func (r *enumValueResolver) DeprecationReason() string { - panic("TODO") +func (r *enumValueResolver) DeprecationReason() *string { + return nil } type directiveResolver struct { @@ -340,7 +340,7 @@ func (r *directiveResolver) Name() string { } func (r *directiveResolver) Description() string { - panic("TODO") + return "" } func (r *directiveResolver) Locations() []string {