Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema creation automation #1354

Open
nagmo opened this issue Nov 11, 2020 · 3 comments
Open

Schema creation automation #1354

nagmo opened this issue Nov 11, 2020 · 3 comments
Labels
backend:server Issues relating to Cube Core's Server enhancement New feature proposal help wanted Community contributions are welcome.

Comments

@nagmo
Copy link

nagmo commented Nov 11, 2020

is there a way to create the schema automatically?
in Looker for example when you connect the DB you get an automatic view per table and fields are defined as measures or dimensions by default.
is there any way to do that on cube? (other then implementing it ourselves)

@paveltiunov
Copy link
Member

Hey @nagmo ! Have you tried to generate schema in Playground?

@paveltiunov paveltiunov added the question The issue is a question. Please use Stack Overflow for questions. label Nov 11, 2020
@paveltiunov paveltiunov self-assigned this Nov 12, 2020
@chicco785
Copy link

@paveltiunov in our case the playground won't help much, in the sense that yes it generate the schemas, but as far I understand you still have to save then the resulting file in the app and restart id. It would be nice to have a functionality similar to the query builder for react dashboard apps. I.e. a SchemaBuilder. Suppose you need a new cube because you added a new table, it would be nice to have the possibility to create such cube schema from the app and store it in the GraphQL backend.

@paveltiunov
Copy link
Member

@chicco785 Makes sense. This is certainly outside of our roadmap as of right now. Cube.js provides easy ways to generate a schema based on external definitions: https://cube.dev/docs/schema-execution-environment#async-module.

I'd leave this one open for community contribution. Looking forward to PRs here!

@paveltiunov paveltiunov added enhancement New feature proposal help wanted Community contributions are welcome. and removed question The issue is a question. Please use Stack Overflow for questions. labels Nov 19, 2020
@paveltiunov paveltiunov removed their assignment Nov 19, 2020
@hassankhan hassankhan added the backend:server Issues relating to Cube Core's Server label May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:server Issues relating to Cube Core's Server enhancement New feature proposal help wanted Community contributions are welcome.
Projects
None yet
Development

No branches or pull requests

4 participants