REST API method to get cubes meta doesn't returns custom metadata
Is your feature request related to a problem? Please describe.
I want to use meta parameter of cubes to customize frontend visualisation for this cubes. But I can't get field meta using method /v1/meta. Is there another ways to read custom metadata?
Describe the solution you'd like
I find it logical to add field meta into response of method /v1/meta
Hi @aaa-user ,
/v1/meta does return meta of the cube.
However this feature is only available since version https://github.com/cube-js/cube/releases/tag/v0.34.35.
Which version did you use?
The documentation(https://cube.dev/docs/reference/rest-api#v1meta) is missing meta by mistake.
@hannosgit Could you please provide PR to the Cube repo? Thanks!
@paveltiunov done, see https://github.com/cube-js/cube/pull/7748
Thanks a lot. I see changes in docs. But I face with error in playground, when paste example meta from docs in my cube (not in measures or dimensions):
Compile errors:
CubeName cube: (meta = [object Object]) is not allowed
Example is:
meta: {
any: `value`
}
What I do wrong? Sorry for silly question.
@aaa-user Which cube version do you use?
Local version was 0.33.47, I've updated it to 0.34.55 and error have dissapeared. Thank you!
@aaa-user so this can be closed?
Yes, question is solved.