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

Migrating to new where options #265

Open
vikas-g2 opened this issue Aug 29, 2023 · 2 comments
Open

Migrating to new where options #265

vikas-g2 opened this issue Aug 29, 2023 · 2 comments

Comments

@vikas-g2
Copy link

Hi,

We have been using a complex filter like this : "Date >= DateTime(#{from_date.strftime("%Y,%m,%d")}) AND Date <= DateTime(#{to_date.strftime("%Y,%m,%d")}) AND BankAccount.accountId == guid(\"#{account_id}\") AND Status == \"#{status}\"" for getting bank transactions.
I am trying to migrate to the new approach of providing where options.

opts = {
  where: {
    status: ['=', "AUTHORISED"],
    "BankAccount.accountId": ['=', '562555f2-8cde-4ce9-8203-0363922537a4'],
    date: from_date..to_date
  },
  unitdp: 4
}

@SerKnight, can you please confirm if this is the right approach? I couldn't find a similar example.

@github-actions
Copy link

PETOSS-343

@github-actions
Copy link

Thanks for raising an issue, a ticket has been created to track your request

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