Skip to content

Commit afe9e5e

Browse files
committed
fix: fetch available relationship attributes
Without this, processing/failed relationship attributes will result in 400 error.
1 parent a621920 commit afe9e5e

File tree

1 file changed

+1
-1
lines changed
  • src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes

1 file changed

+1
-1
lines changed

src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function buildWildcardAttributesQuery(
2929
): string[] {
3030
return [
3131
...(collection?.attributes
32-
?.filter((attr) => isRelationship(attr))
32+
?.filter((attr) => attr.status === 'available' && isRelationship(attr))
3333
?.map((attr) => Query.select([`${attr.key}.*`])) ?? []),
3434

3535
Query.select(['*'])

0 commit comments

Comments
 (0)