GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
415 B

  1. package graph2
  2. import (
  3. "git.aiterp.net/rpdata/api/graph2/queries"
  4. graphql "github.com/99designs/gqlgen/graphql"
  5. )
  6. //go:generate ./combine.sh
  7. //go:generate gorunpkg github.com/99designs/gqlgen -v
  8. func New() graphql.ExecutableSchema {
  9. return NewExecutableSchema(Config{
  10. Resolvers: &rootResolver{},
  11. })
  12. }
  13. type rootResolver struct{}
  14. func (r *rootResolver) Query() QueryResolver {
  15. return &queries.Resolver
  16. }