blob: 8bd1fa68a90960da0b77ae2046bf10a5279990ec (
plain) (
tree)
|
|
package graphql
import (
"github.com/graphql-go/graphql/gqlerrors"
)
// type Schema interface{}
type Result struct {
Data interface{} `json:"data"`
Errors []gqlerrors.FormattedError `json:"errors,omitempty"`
}
func (r *Result) HasErrors() bool {
return len(r.Errors) > 0
}
|