-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
[Support] - date range #76
Comments
I do not understand why you have an issue with this. Sailor generates fully typed input objects, it should be obvious from their definition how they must be constructed. In general, I recommend using their MyOperation::execute(
where: WhereCondition::make(
field: FieldRange::make(from: 1, to: 2),
),
) Look at the actual generated types to figure out what to pass, there should be no guesswork involved. |
Oh and since your example uses inline arguments: make sure to use variables. |
Dear Spania, Sorry for this newbie question, here is how i did it finally:
Sorry again, next time i will take more time to think twice before posting. I wish you a nice day, many thanks for this (very) nice library. |
This looks fine and is how I would do it prior to PHP 8. With PHP 8, I would use named arguments to avoid the intermediary variables and shorten the code. |
Hello,
I wonder how to implement this query with Sailor (a date range query base on an input that is built up incrementally) :
In my case, "mol_weight" type is "numeric_comparison_exp".
I wish i could do this:
Many thanks in advance.
Eric
The text was updated successfully, but these errors were encountered: