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

Query Mode: Having _exists set in query mode when required data type is defined by schema #328

Open
hhhapz opened this issue Sep 29, 2021 · 0 comments

Comments

@hhhapz
Copy link
Contributor

hhhapz commented Sep 29, 2021

When generating a custom query method, sometimes the value returned is identical to a defined type already in the schema, but may contain something such as a simple join which makes not possible to be used alongside an index. In these situations, using -2 (Second mode) and --append is very handy, and allows for returning the same schema returned type, however unfortunately the _exists flag is not added.

Of course, this will be difficult to implement "fully" correctly, as I do not believe there is a definitive way to make sure that such a flag does indeed exist within that field. The easiest way to implement this would be via a flag, undecided on a name that fits,

With the proposed custom project mode, there may also be the ability to do this when all the queries alongside the types are known, however for such a feature this may be over complicating the build steps for queries.

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

1 participant