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

Generators #14

Closed
k-ode opened this issue Nov 12, 2021 · 5 comments
Closed

Generators #14

k-ode opened this issue Nov 12, 2021 · 5 comments

Comments

@k-ode
Copy link
Contributor

k-ode commented Nov 12, 2021

Would be nice to build model generators based on backend schemas like graphql. We should be able to use something similar to what is being used in mst-gql.

Generating models should mostly just work, but I'm curious if we could also generate stores/queries/mutations?

@k-ode
Copy link
Contributor Author

k-ode commented Feb 8, 2023

We now have a graphql generator.

@k-ode k-ode closed this as completed Feb 8, 2023
@beepsoft
Copy link

It seems quite similar to the approach of https://github.com/mobxjs/mst-gql. Are you aware of that project?

@k-ode
Copy link
Contributor Author

k-ode commented Feb 16, 2023

@beepsoft The issue text says as much :)

This library started out as a fork of mst-gql. The generator is also based on the one in mst-gql, but is completely re-written in typescript.

@beepsoft
Copy link

beepsoft commented Feb 16, 2023

@k-ode Sorry, I missed that. :-) mst-gql's generator is a bit outdated, so, do you think it would be possible to somehow port back your generator there? Or maybe have a common generator used by both projects? I see, for example, that you have less generator options, but the overall generated models seems to be quite the same.

@k-ode
Copy link
Contributor Author

k-ode commented Feb 17, 2023

@beepsoft Yes, it should be fairly straightforward to backport it to mst-gql.

I don't think I'd be interested in a shared generator, as I might want to do some things specific to mst-query when generating model and root stores.

Would be interested to know if there's anything in mst-gql that you are missing from mst-query. In my mind mst-query should at this point be a more powerful alternative to mst-gql.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants