|
@ -2,7 +2,7 @@ package graph2 |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"git.aiterp.net/rpdata/api/graph2/graphcore" |
|
|
"git.aiterp.net/rpdata/api/graph2/graphcore" |
|
|
"git.aiterp.net/rpdata/api/graph2/queries" |
|
|
|
|
|
|
|
|
"git.aiterp.net/rpdata/api/graph2/resolvers" |
|
|
"git.aiterp.net/rpdata/api/graph2/types" |
|
|
"git.aiterp.net/rpdata/api/graph2/types" |
|
|
"git.aiterp.net/rpdata/api/services" |
|
|
"git.aiterp.net/rpdata/api/services" |
|
|
graphql "github.com/99designs/gqlgen/graphql" |
|
|
graphql "github.com/99designs/gqlgen/graphql" |
|
@ -23,15 +23,15 @@ type rootResolver struct { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (r *rootResolver) Query() graphcore.QueryResolver { |
|
|
func (r *rootResolver) Query() graphcore.QueryResolver { |
|
|
return queries.QueryResolver(r.s) |
|
|
|
|
|
|
|
|
return resolvers.QueryResolver(r.s) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (r *rootResolver) Mutation() graphcore.MutationResolver { |
|
|
func (r *rootResolver) Mutation() graphcore.MutationResolver { |
|
|
return queries.MutationResolver |
|
|
|
|
|
|
|
|
return resolvers.MutationResolver |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (r *rootResolver) Subscription() graphcore.SubscriptionResolver { |
|
|
func (r *rootResolver) Subscription() graphcore.SubscriptionResolver { |
|
|
return queries.SubscriptionResolver |
|
|
|
|
|
|
|
|
return resolvers.SubscriptionResolver |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (r *rootResolver) Log() graphcore.LogResolver { |
|
|
func (r *rootResolver) Log() graphcore.LogResolver { |
|
|