|
|
|
@ -185,7 +185,7 @@ type ComplexityRoot struct {
|
|
|
|
|
LookupNames func(childComplexity int, names []string) int
|
|
|
|
|
QueryBonds func(childComplexity int, attributes []*KeyValueInput) int
|
|
|
|
|
QueryBondsByOwner func(childComplexity int, ownerAddresses []string) int
|
|
|
|
|
QueryRecords func(childComplexity int, attributes []*KeyValueInput, all *bool) int
|
|
|
|
|
QueryRecords func(childComplexity int, attributes []*KeyValueInput, all *bool, limit *int, offset *int) int
|
|
|
|
|
ResolveNames func(childComplexity int, names []string) int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -236,7 +236,7 @@ type QueryResolver interface {
|
|
|
|
|
QueryBonds(ctx context.Context, attributes []*KeyValueInput) ([]*Bond, error)
|
|
|
|
|
QueryBondsByOwner(ctx context.Context, ownerAddresses []string) ([]*OwnerBonds, error)
|
|
|
|
|
GetRecordsByIds(ctx context.Context, ids []string) ([]*Record, error)
|
|
|
|
|
QueryRecords(ctx context.Context, attributes []*KeyValueInput, all *bool) ([]*Record, error)
|
|
|
|
|
QueryRecords(ctx context.Context, attributes []*KeyValueInput, all *bool, limit *int, offset *int) ([]*Record, error)
|
|
|
|
|
GetAuthorities(ctx context.Context, owner *string) ([]*Authority, error)
|
|
|
|
|
LookupAuthorities(ctx context.Context, names []string) ([]*AuthorityRecord, error)
|
|
|
|
|
LookupNames(ctx context.Context, names []string) ([]*NameRecord, error)
|
|
|
|
@ -873,7 +873,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in
|
|
|
|
|
return 0, false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return e.complexity.Query.QueryRecords(childComplexity, args["attributes"].([]*KeyValueInput), args["all"].(*bool)), true
|
|
|
|
|
return e.complexity.Query.QueryRecords(childComplexity, args["attributes"].([]*KeyValueInput), args["all"].(*bool), args["limit"].(*int), args["offset"].(*int)), true
|
|
|
|
|
|
|
|
|
|
case "Query.resolveNames":
|
|
|
|
|
if e.complexity.Query.ResolveNames == nil {
|
|
|
|
@ -1330,6 +1330,24 @@ func (ec *executionContext) field_Query_queryRecords_args(ctx context.Context, r
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
args["all"] = arg1
|
|
|
|
|
var arg2 *int
|
|
|
|
|
if tmp, ok := rawArgs["limit"]; ok {
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit"))
|
|
|
|
|
arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
args["limit"] = arg2
|
|
|
|
|
var arg3 *int
|
|
|
|
|
if tmp, ok := rawArgs["offset"]; ok {
|
|
|
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("offset"))
|
|
|
|
|
arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
args["offset"] = arg3
|
|
|
|
|
return args, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -4766,7 +4784,7 @@ func (ec *executionContext) _Query_queryRecords(ctx context.Context, field graph
|
|
|
|
|
}()
|
|
|
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
|
|
|
|
|
ctx = rctx // use context from middleware stack in children
|
|
|
|
|
return ec.resolvers.Query().QueryRecords(rctx, fc.Args["attributes"].([]*KeyValueInput), fc.Args["all"].(*bool))
|
|
|
|
|
return ec.resolvers.Query().QueryRecords(rctx, fc.Args["attributes"].([]*KeyValueInput), fc.Args["all"].(*bool), fc.Args["limit"].(*int), fc.Args["offset"].(*int))
|
|
|
|
|
})
|
|
|
|
|
if err != nil {
|
|
|
|
|
ec.Error(ctx, err)
|
|
|
|
|