adminService returns the admin operations of the underlying service provider. The concrete service value implements both service.Provider and service.AdminProvider (compile-time asserted in the service package), so this assertion always succeeds; admin resolvers delegate through it.
()
| 73 | // service.AdminProvider (compile-time asserted in the service package), so this |
| 74 | // assertion always succeeds; admin resolvers delegate through it. |
| 75 | func (g *graphqlProvider) adminService() service.AdminProvider { |
| 76 | return g.ServiceProvider.(service.AdminProvider) |
| 77 | } |
| 78 | |
| 79 | // Provider is the interface that provides the methods to interact with the graphql mutations and queries. |
| 80 | type Provider interface { |
no outgoing calls
no test coverage detected