diff --git a/.changeset/cold-grapes-shop.md b/.changeset/cold-grapes-shop.md new file mode 100644 index 000000000..959551fd8 --- /dev/null +++ b/.changeset/cold-grapes-shop.md @@ -0,0 +1,5 @@ +--- +"@cube-creator/shared-dimensions-api": patch +--- + +Querying hierarchies could cause `414 (URI Too Long)` error (re #1544) diff --git a/apis/shared-dimensions/lib/domain/shared-dimensions.ts b/apis/shared-dimensions/lib/domain/shared-dimensions.ts index 8c3971ae7..306afb34b 100644 --- a/apis/shared-dimensions/lib/domain/shared-dimensions.ts +++ b/apis/shared-dimensions/lib/domain/shared-dimensions.ts @@ -86,7 +86,9 @@ export async function getSharedTerms({ s } const { constructQuery } = await shapeToQuery() - return constructQuery(shape).execute(client) as any + return constructQuery(shape).execute(client, { + operation: 'postDirect', + }) as any } async function loadShape(shape: string) {