CLI tool for DataStore?
See original GitHub issueFeature Request
Is your feature request related to a problem? Please describe. We need Model types to be created for use with DataStore. See #505
Describe the solution you’d like A tool to generate resources required for DataStore. I believe that what we do in DataStore should have nothing to do with Graphback so if we are generating DataStore resources we should do it in offix and not worry about Graphback.
Describe alternatives you’ve considered Creating a plugin(Graphback or Graphql-codegen) to generate the resources instead of doing it in Offix.
What I’m saying is this, “Is the resource generation a feature of DataStore?” If yes, the resources required by Offix DataStore should be generated by an Offix DataStore CLI tool. What this means that no user is forced to use Graphback or GraphQL-codegen or some other codegen tool.
Also, there is talk about graphback-client. I understand the “graphback client” to be a plugin to generate client query documents. This function is not related to DataStore in any way that I know of, so, why move or modify the “graphback-client”?.
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (9 by maintainers)

Top Related StackOverflow Question
Yep. Codegen will not work here as it is designed to work with generic graphql clients. I think we can bring codegen only when we will have relationships investigation done. If you really want to do it now - check graphback client side generator. We can transform schema and replace relationships fields as we do there - but I do not think that is great idea.
CC @kingsleyzissou
Nice! I think @kingsleyzissou were looking to play with the example app. I will review this now and we can look into reading feature branch and add the ability to test it with the offix sample app (it will require an update of graphback)