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

Input types for query #12

Open
olup opened this issue Jan 29, 2020 · 6 comments
Open

Input types for query #12

olup opened this issue Jan 29, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@olup
Copy link

olup commented Jan 29, 2020

Very interesting project !

I wondered if the generated input types for the "find" query could be better by nested options rather than have a double-dashed option name. IE :

( where : { name : { contains : "john" } } )
rather than
( where : {name__contains : "john" } )

those inputs are generic, like intInput, stringInput, etc...

@vinpac
Copy link
Owner

vinpac commented Jan 29, 2020

You're right on that. I will make this change after I finish the updateOne and updateMany fields I'm working on.

If I move fast enough to finish these two by the end of this week, I will focus on this issue next week.

@vinpac vinpac added the enhancement New feature or request label Jan 29, 2020
@olup
Copy link
Author

olup commented Jan 29, 2020 via email

@olup
Copy link
Author

olup commented Jan 30, 2020 via email

@thehappycoder
Copy link

I like how Prisma generates where types. Let's you combine AND and OR. Very flexible. You should check it out. Can be totally generated with typeorm query builder.

@olup
Copy link
Author

olup commented Jan 31, 2020 via email

@vinpac
Copy link
Owner

vinpac commented Jan 31, 2020

Nexus prisma is big inspiration for this project indeed!

I'm almosted finished with updateOne, updateMany and it's nested relation mutations. It is being made to have the same mutations as nexus-prisma.

With the updated where types it will work like a charm

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

No branches or pull requests

3 participants