diff --git a/internal/services/shared/schema.go b/internal/services/shared/schema.go index 7c5b736484..5841e9d194 100644 --- a/internal/services/shared/schema.go +++ b/internal/services/shared/schema.go @@ -321,7 +321,7 @@ func sanityCheckNamespaceChanges( qy, qyErr := rwt.QueryRelationships(ctx, datastore.RelationshipsFilter{ OptionalResourceType: nsdef.Name, OptionalResourceRelation: delta.RelationName, - }) + }, options.WithLimit(options.LimitOne)) err = errorIfTupleIteratorReturnsTuples( ctx,